-1

I am showing alert on this. But alert is clipped on the either sides, width of popup is 320px. How can I display the entire alert ?Pop-up screen

Philipp
  • 10,240
  • 8
  • 59
  • 71

2 Answers2

1

In your screenshot the popup is cropped to the parent window size. Resize the window to show the full alert box.

In all browsers I know the alert-box is always a child of the browser window, so it can never reach outside the browser window.

Option 1

You could use JS to resize the browser window (e.g. make window wider before alert, smaller again after alert):

window.resizeTo( width, height );

Option 2

Create your own JS popup box instead of using alert(). You cannot style the alert() box, but you can control size/design of a custom popup you create

Philipp
  • 10,240
  • 8
  • 59
  • 71
1

That problem occurs when Chrome is running on Windows 7. It occurs when alert is smaller than 370px. I have the same problem and I found that it is a bug in Chrome when is used on Windows 7.

krolik1991
  • 244
  • 1
  • 4
  • 13