Previous Message
Next Message

FF impossible resize bug

Sent by Roger Roelofs on 5 August 2005 05:05


Michiel,

On 8/4/05, Michiel van der Blonk [EMAIL-REMOVED]> wrote:

>  PS: yes your right about your PS, only it's not as simple as you may think.
It never is  :-)   I'm sorry if I gave you the impression that I
thought you were new to css.  I'm just returning to the list after a
time away, and some of the people are new to me, so I don't yet know
where they are on the learning curve.


>  In fact we did start coding from scratch, not designing from scratch. I
> also have to educate our designers to learn that it doesn't have to look
> like a table. Problem: our main designer likes this look. Most of them even
> work with FrontPage most of the time.
I can relate.  :-(

>  Latest news: I isolated the bug, and it's really strange to me, it doesn't
> look like standards behaviour at all. I posted a demo to Holly & John, and
> you have it too as an attachment.
Wow! _that_ is a great test case.

You may be interested to know that this bug has been fixed for the
next major version of gecko.  I tested in Deer Park alpha 2 and the
select behaves normaly.
As a work around, you could change height: 1.75em to min-height:
1.75em.  For some reason this doesn't trigger the bug.

Here's a slightly smaller test case.
---------
<form action="">
	<select name="category" style="height: 1.75em">
		<option>Testing Select Box Resize so make it really really long</option>
	</select>
</form>
--------
What triggers the bug is when the width of the form (or maybe just the
container) is less than the width of the select _and_ the select has a
defined height but no defined width.   I would guess that some
variable unexpectedly goes negative and that throw off the width
calculation,  but that's only a guess, and I don't care enough to go
digging around in the source  :-)
-- 
Roger

Roger Roelofs
Know what you value.
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: