Questions tagged [window-resize]

Refers to events and behaviors occurred before, meanwhile and after a window being re-sized.

724 questions
644
votes
13 answers

JavaScript window resize event

How can I hook into a browser window resize event? There's a jQuery way of listening for resize events but I would prefer not to bring it into my project for just this one requirement.
Dead account
  • 18,306
  • 13
  • 48
  • 79
56
votes
1 answer

dev.hold, dev.flush and resizing windows

In R, it is possible to hold a device, draw the picture, and then flush the device to render the graphics. This is useful for very complex plots with thousands of data points, color gradients etc since without holding, the device would be refreshed…
January
  • 14,011
  • 6
  • 46
  • 64
46
votes
6 answers

How to smooth ugly jitter/flicker/jumping when resizing windows, especially dragging left/top border (Win 7-10; bg, bitblt and DWM)?

THE PROBLEM: When I grab the resize border of my Windows app, especially the top or left borders, and resize the window, the contents of the window do resize "live" as I drag, but they resize in a hideous manner that looks like a blatant bug to even…
Louis Semprini
  • 2,495
  • 25
  • 26
35
votes
2 answers

Min width in window resizing

I have a webpage with a fluid layout with a 100% width. When I resize browser window the elements in the page overlap. I would create an effect similar to this website http://bologna.bakeca.it/ that when window is smaller than a fixed width stop…
pAkY88
  • 5,916
  • 11
  • 43
  • 54
34
votes
1 answer

Keeping winform control centered after window resize

Using Visual Studio 2008, windows forms, C#, .NET 2.0 ... Is there a code-less way to get a control (it happens to be a PictureBox in my case) to stay centered as the window is resized? In other words, using some combination of property settings…
Adam Kane
  • 3,856
  • 7
  • 41
  • 52
30
votes
4 answers

Call a function when window is resized

How can I call for this(or any) JS function to be run again whenever the Browser window is resized?