7 replies [Last post]
pmayor
Offline
newbie
Last seen: 10 years 26 weeks ago
Timezone: GMT-7
Joined: 2011-04-05
Posts: 4
Points: 5

The latest version of Opera will cause popup windows to open in the same magnification setting as the parent window. This means if you have zoomed a web page to, say, 200% magnification, popup windows from that page will also open in this magnification. This is a big problem, because popup windows open with a pre-determined size, therefore if the content is zoomed too large the formatting is all wrong.

This is the javascript I am using:

<script language="JavaScript"><!-- Begin 
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2; 
var wint = (screen.height - <img src="https://csscreator.com/sites/all/modules/smileys/packs/Roving/grade.png" title="Grade" alt="Grade" class="smiley-content" /> / 2; 
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable' 
win = window.open(mypage, myname, winprops) 
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } 
} 
//  End -->

Does anyone know if there is a way that I can specify that a window open in normal or non-magnified (or !00%) mode?

Much thanks.

Tags:
Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 7 years 4 days ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Window size shouldn't matter

As long as you're not preventing scrolling, window size shouldn't be an issue if you've got your styles and layout set out right.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Deuce
Deuce's picture
Offline
Guru
Somewhere, USA
Last seen: 4 years 13 weeks ago
Somewhere, USA
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4424
Points: 1843

The zoom level of any

The zoom level of any particular page is the user's choice and not only cannot, but should not, control this.

all ยป http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

pmayor
Offline
newbie
Last seen: 10 years 26 weeks ago
Timezone: GMT-7
Joined: 2011-04-05
Posts: 4
Points: 5

I appreciate the help, but I

I appreciate the help, but I wonder if you are really understanding the problem.

To keep it simple: if a popup window opens at the exact dimensions of a photo that it encloses, then obviously if it is zoomed anything other than normal (100%) then the photo will be too big for the dimensions of the photo.

This is why it makes no sense for popup windows to open at anything other than 100% magnification, because their size has already been pre-determined.

Yes the zoom level of any page should be the user's choice, but pop-up windows are not really a "page," and that's the point. They open up within a page and are part of the design element of that page.

pmayor
Offline
newbie
Last seen: 10 years 26 weeks ago
Timezone: GMT-7
Joined: 2011-04-05
Posts: 4
Points: 5

What's the reason why people

What's the reason why people keep changing the way web browsers work? Is there any idea? If something is not broken, why do people try and fix it? This used to never be a problem.

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 7 years 4 days ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Pop-up windows for photos belong in the last century

Seriously, if you need to display images over the top of the page you're on, don't use pop-up windows, use a Lightbox-style/modal window script instead.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

pmayor
Offline
newbie
Last seen: 10 years 26 weeks ago
Timezone: GMT-7
Joined: 2011-04-05
Posts: 4
Points: 5

This is pretty basic design:

This is pretty basic design: if a javascript is specifying the dimensions for a popup window, then these design dimensions should be honored, otherwise the layout is all off. This is not insignificant.

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 3 weeks 1 day ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9674
Points: 810

pmayor wrote: This is pretty

pmayor wrote:

This is pretty basic design: if a javascript is specifying the dimensions for a popup window, then these design dimensions should be honored, otherwise the layout is all off. This is not insignificant.

But the dimensions are honored, the pop up window comes up exactly the size you tell it to.

If people need to zoom pages for whatever reason (usually accessibility) then they will be well aware the web does not work exactly as intended. Most of them will not care. As an aside, I am posting from my phone using Opera Mobile. Web sites are squashed and mangled and shrunk to fit my screen and I don't care.

If you really think it's a problem that needs to be rectified you'd be better off speaking to the Opera development team.

I also completely agree with Tyssen; lightbox windows are the way to go. Your image pop up will probably be blocked straight away and even if it does appear, users will close it - people HATE popups.

Verschwindende wrote:
  • CSS doesn't make pies