width="" minheight="" on windows do not work together, set height to 0

NEW
Unassigned

Status

()

14 years ago
8 years ago

People

(Reporter: readams, Unassigned)

Tracking

Trunk
x86
Linux
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.6) Gecko/20050405 Firefox/1.0 (Ubuntu package 1.0.2)
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.6) Gecko/20050405 Firefox/1.0 (Ubuntu package 1.0.2)

Currently there's no way to set minimum and maximum size hints for XUL under, at
least, gtk2.  Ideally there'd be a way to set these hints, and extra-ideally
it'd automatically set at least a sane minumum size hint.  Even non-resizable
windows, including alerts, prompts, and dialogs opened with the non-resizable
property, are resizable.

Reproducible: Always
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/
(Reporter)

Comment 2

13 years ago
Still a real issue.  Silly bot.

To reproduce: take a firefox window and resize it until it's one pixel wide and
tall.  Happily resize a window opened declaring that it should be nonresizable.

Probably hard to fix given the way XUL layout works though, but that doesn't
mean its not a real problem.

Comment 3

13 years ago
minwidth and minheight don't have any effect on windows either

Comment 4

13 years ago
Yes, this happens on win32, too.

The document's contents will determine that they don't want to get any smaller, but the window's size is allowed to continue to shrink.

The resizers should obey any arbitrary min/max-width/height specified in xul or css and (at least optionally) obey the calculated minimum extents of the window's contents.

Comment 5

12 years ago
Happens on Mac OS X as well. Minheight and mindwidth just don't have any effects ond <window>s and <dialog>s.
Assignee: blizzard → nobody
Component: GFX: Gtk → XP Toolkit/Widgets: XUL
QA Contact: ian → xptoolkit.xul
Summary: minwidth and minheight attributes on windows should set WM hints in gtk2 on X11 → minwidth and minheight attributes on windows does not have any effect
This is serious and ridiculous.
I want a window to be at least n px, but as much as needed.
Status: UNCONFIRMED → NEW
Ever confirmed: true

Updated

11 years ago
Blocks: 393966
Correction: It works!
I just had set width="" minheight="" - that combination does not work. Setting width sets the height to 0, no matter a minheight. Setting both width="" height="" or both minwidth="" minheight="" works, just not an arbitrary combination.
Changing subject from
minwidth and minheight attributes on windows does not have any effect
to
width="" minheight="" do not work together, set height to 0
Please correct me, if I'm wrong.
No longer blocks: 393966
Summary: minwidth and minheight attributes on windows does not have any effect → width="" minheight="" do not work together, set height to 0

Updated

11 years ago
Summary: width="" minheight="" do not work together, set height to 0 → width="" minheight="" on windows do not work together, set height to 0

Updated

11 years ago
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.xul → xptoolkit.widgets

Comment 9

10 years ago
minheight and minwidth on <window> elements do not work for me on windows.

digging into the code, moz would have to be handling the WM_GETMINMAXINFO message and modifying the MINMAXINFO structure that it points to. while there is code in mozilla/widget/src/windows/nsWindow.cpp to capture that message, it's only used to call what appears to be menu-hiding code. there would need to be a patch to the nsWindow::MozSpecialWndProc method to handle minimum window sizes.
You need to log in before you can comment on or make changes to this bug.