mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Dialog: Removed unneeded parens.
This commit is contained in:
parent
1d7197f719
commit
1ddfaa0ab0
@ -197,11 +197,11 @@ $.widget("ui.dialog", {
|
|||||||
pLeft += 0;
|
pLeft += 0;
|
||||||
break;
|
break;
|
||||||
case 'right':
|
case 'right':
|
||||||
pLeft += (wnd.width()) - (this.uiDialog.width());
|
pLeft += wnd.width() - this.uiDialog.width();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
case 'center':
|
case 'center':
|
||||||
pLeft += (wnd.width() / 2) - (this.uiDialog.width() / 2);
|
pLeft += (wnd.width() - this.uiDialog.width()) / 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (pos[1].constructor == Number) {
|
if (pos[1].constructor == Number) {
|
||||||
@ -212,11 +212,11 @@ $.widget("ui.dialog", {
|
|||||||
pTop += 0;
|
pTop += 0;
|
||||||
break;
|
break;
|
||||||
case 'bottom':
|
case 'bottom':
|
||||||
pTop += (wnd.height()) - (this.uiDialog.height());
|
pTop += wnd.height() - this.uiDialog.height();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
case 'middle':
|
case 'middle':
|
||||||
pTop += (wnd.height() / 2) - (this.uiDialog.height() / 2);
|
pTop += (wnd.height() - this.uiDialog.height()) / 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user