Closed Bug 798757 Opened 13 years ago Closed 13 years ago

Viewport won't shrink below some minimum width

Categories

(Firefox :: General, defect)

15 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: denis_truffaut, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4 Steps to reproduce: Open Firefox and Chrome. Test this pretty simple example (only 6 lines) : <!DOCTYPE html> <html> <body> <div style="margin-right:20px;background:red;">Lorem ipsum dolor sit amet, consectetur adipisicing elit</div> </body> </html> Now, resize both browsers to a very small width. Actual results: The right-margin (20px) is not honored in Firefox. This bug happen only under a width threshold. Chrome is OK. Expected results: The right-margin (20px) should be honored when possible, for every browser width. It is very important for responsive designs (phones and other mobile devices)...
Internet Explorer and Opera are OK too. This is really Firefox-specific. It seems that, in Firefox, when the url bar is horizontally minified as possible, the browser stops to compute elements sizes.
Attached file Reporter's testcase
Component: Untriaged → Layout
Product: Firefox → Core
> It seems that, in Firefox, when the url bar is horizontally minified as possible, the > browser stops to compute elements sizes. When that happens, the viewport stops getting smaller, even if the window gets smaller. This is a pure Firefox UI issue; nothing to do with core layout. It's also not happening in my Firefox (on Mac), so it's possible that you have extensions that are triggering the behavior. Do you see the behavior in safe mode? > It is very important for responsive designs (phones and other mobile devices)... You can test things for responsive designs without resizing your browser window at all by either loading it in an iframe of the given width or by using the option in the developer tools that Firefox has for this purpose, for what it's worth.
Component: Layout → General
Product: Core → Firefox
Summary: Right margin is not honored on small browser width - auto width margin bug - Chrome is OK → Viewport won't shrink below some minimum width
Whiteboard: DUPEME
Denis, can you reproduce this issue with a clean profile? http://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles
Flags: needinfo?(denis_truffaut)
Yep, problem remains with a fresh profile. As Boris said, it is a pure UI issue. Displaying the sample inside an iframe is OK.
Flags: needinfo?(denis_truffaut)
As far as i can tell its the firefox button that caused it; and that's why it only happend on windows. It's fixed in the firefox 17 cycle (looking for the checkin right now. Confirmation if this is what you see: 1. Start firefox 2. load the testcase 3. slide the window and get the effect that the ui "slides" 4. show the window menu (right click the toolbar and check "menu bar" 5. slide the window
Nope, the problem remains with the menu bar displayed, the cause is not the "Firefox" orange button. I let you see what happen with some screenshots : http://www.kirikoo.net/images/7CyberDenix-20121019-103116.png 1. no render - with firefox button + fresh profile 2. no render - without firefox button 3. no render again 4. no render again 5. start to render 6. I suspect the url bar to be the triggering element
i also see that you have the firebug toolbar button in the toolbar, have you tried if moving it helps?
Flags: needinfo?(denis_truffaut)
Hi Cork, The first shot, on the left (those with firefox orange button), was made on a new profile, without firebug and web dev toolbar. ... Super ! I confirm that the bug is resolved in the 17.0a1 ! \o/ \o/ \o/
Flags: needinfo?(denis_truffaut)
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: