mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 07:40:42 +00:00
copy/paste coding error - simple change from Height to Width
Bug 67497 sr=attinasi
This commit is contained in:
parent
fa5531f56e
commit
84cce45360
@ -685,7 +685,7 @@ nsHTMLButtonControlFrame::Reflow(nsIPresContext* aPresContext,
|
||||
|
||||
// center child horizontally
|
||||
nscoord xoff = 0;
|
||||
if (aReflowState.mComputedHeight != NS_INTRINSICSIZE) {
|
||||
if (aReflowState.mComputedWidth != NS_INTRINSICSIZE) {
|
||||
xoff = (aReflowState.mComputedWidth - aDesiredSize.width)/2;
|
||||
if (xoff < 0) {
|
||||
xoff = 0;
|
||||
|
@ -685,7 +685,7 @@ nsHTMLButtonControlFrame::Reflow(nsIPresContext* aPresContext,
|
||||
|
||||
// center child horizontally
|
||||
nscoord xoff = 0;
|
||||
if (aReflowState.mComputedHeight != NS_INTRINSICSIZE) {
|
||||
if (aReflowState.mComputedWidth != NS_INTRINSICSIZE) {
|
||||
xoff = (aReflowState.mComputedWidth - aDesiredSize.width)/2;
|
||||
if (xoff < 0) {
|
||||
xoff = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user