Skip to content
Permalink
Browse files

Dialog: Removed unneeded parens.

  • Loading branch information
scottgonzalez committed Jun 5, 2008
1 parent 1d7197f commit 1ddfaa0ab0a6f366f511e70e05ca88c1f204e107
Showing with 4 additions and 4 deletions.
  1. +4 −4 ui/source/ui.dialog.js
@@ -197,11 +197,11 @@ $.widget("ui.dialog", {
pLeft += 0;
break;
case 'right':
pLeft += (wnd.width()) - (this.uiDialog.width());
pLeft += wnd.width() - this.uiDialog.width();
break;
default:
case 'center':
pLeft += (wnd.width() / 2) - (this.uiDialog.width() / 2);
pLeft += (wnd.width() - this.uiDialog.width()) / 2;
}
}
if (pos[1].constructor == Number) {
@@ -212,11 +212,11 @@ $.widget("ui.dialog", {
pTop += 0;
break;
case 'bottom':
pTop += (wnd.height()) - (this.uiDialog.height());
pTop += wnd.height() - this.uiDialog.height();
break;
default:
case 'middle':
pTop += (wnd.height() / 2) - (this.uiDialog.height() / 2);
pTop += (wnd.height() - this.uiDialog.height()) / 2;
}
}

0 comments on commit 1ddfaa0

Please sign in to comment.
You can’t perform that action at this time.