Closed Bug 542394 Opened 14 years ago Closed 1 year ago

html:textarea with height: 100% Doesn't expand with its container (Window)

Categories

(Toolkit :: UI Widgets, defect)

x86
Windows XP
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: info, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6

In Firefox 3.6 the following element:
<html:textarea style="height: 100%"/> doesn't expand as its container does.
Example code is listed below, look at the element with ID WML_Writer_Text, Dialog box is resizable, and every single element is getting resized with the page except this html:textarea element. Used to work perfectly with Firefox 3.5.7

<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
		xmlns:html="http://www.w3.org/1999/xhtml"
		title="&wmlWriter.windowTitle;"
		id="WML_Writer"
		style="width:500px; height:350px;"
		persist="screenX screenY width height"
		ondialogcancel="org.technoLinguistics.wml.WmlWriterPage.onWriterCancel()"
		ondialogaccept="org.technoLinguistics.wml.WmlWriterPage.onWriterAccept()"> 
			
	<script type="application/x-javascript" src="chrome://wml/content/lib/wml_prototype.js"/>	
	<script type="application/x-javascript" src="chrome://wml/content/service/wml_writer.js"/>
	
	<html:div id="WML_Writer_Joker"></html:div>
	
	<dialogheader title="&wmlWriter.dialogTitle;" description="&wmlWriter.dialogDescription;"/>
    <groupbox style='padding:10px;' flex="1">
    	<stack flex="1">
    		<html:div style="border:none; -moz-stack-sizing:ignore">
    			<html:textarea id="WML_Writer_Text" style="height: 100%; width:100%"//>
    			<html:div id="WML_Writer_Caret"/>
    		</html:div>
      		<html:div id="WML_Writer_Wrap" class="wmlWriterWrap" style="display:none"></html:div>
    	</stack>
   	</groupbox>
   
</dialog>

Reproducible: Always

Actual Results:  
Only html:textarea width is getting adjusted when its container(window) is resized, while the height stays the same.

Expected Results:  
Height as well as Width should be modified on resize of the window.

This code is from wml_writer.xul file in Write My Language addon.
Component: Developer Tools → XUL Widgets
Product: Firefox → Toolkit
QA Contact: developer.tools → xul.widgets
Version: unspecified → Trunk

In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.

Severity: major → --

Not sure that moz-stack-sizing exists anymore.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.