mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 620253 nsResizerFrame::AdjustDimensions fall through comment is misplaced, r+a=dbaron
This commit is contained in:
parent
3799bc5da5
commit
5f4030f326
@ -399,11 +399,14 @@ nsResizerFrame::AdjustDimensions(PRInt32* aPos, PRInt32* aSize,
|
||||
{
|
||||
switch(aResizerDirection)
|
||||
{
|
||||
case -1: // only move the window when the direction is top and/or left
|
||||
case -1:
|
||||
// only move the window when the direction is top and/or left
|
||||
*aPos+= aMovement;
|
||||
case 1: // falling through: the window is resized in both cases
|
||||
// falling through: the window is resized in both cases
|
||||
case 1:
|
||||
*aSize+= aResizerDirection*aMovement;
|
||||
if (*aSize < 1) // use one as a minimum size or the element could disappear
|
||||
// use one as a minimum size or the element could disappear
|
||||
if (*aSize < 1)
|
||||
*aSize = 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user