From 1d3b8ff78eaa3d64a839ba34af34d1e8b24f82af Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 16 May 2013 06:26:03 -0400 Subject: Position: Use absolute positioning when getting scrollbar width to avoid reflows of user content. Fixes #9291 - Position - $.position.scrollbarWidth detection causes layout issues. --- demos/position/default.html | 150 ++++++++++++++------------------------------ 1 file changed, 46 insertions(+), 104 deletions(-) (limited to 'demos') diff --git a/demos/position/default.html b/demos/position/default.html index ad5a3d874..f94d316e3 100644 --- a/demos/position/default.html +++ b/demos/position/default.html @@ -12,126 +12,68 @@ -
-

- This is the position parent element. -

-
- -
-

- to position -

-
- -
-

- to position 2 -

-
- -
- position... -
- my: - - +
+
+
+ +
-
- at: - - -
-
- collision: - - -
-
-
-

Use the form controls to configure the positioning, or drag the positioned element to modify its offset. -
Drag around the parent element to see collision detection in action.

-
+
+ -- cgit v1.2.3 From 0da5f9946d0a87f3bdd47cf8848fd63956e261d3 Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 16 May 2013 08:32:58 -0400 Subject: Revert "Position: Use absolute positioning when getting scrollbar width to avoid reflows of user content. Fixes #9291 - Position - $.position.scrollbarWidth detection causes layout issues." This reverts commit 1d3b8ff78eaa3d64a839ba34af34d1e8b24f82af. --- demos/position/default.html | 150 ++++++++++++++++++++++++++++++-------------- ui/jquery.ui.position.js | 2 +- 2 files changed, 105 insertions(+), 47 deletions(-) (limited to 'demos') diff --git a/demos/position/default.html b/demos/position/default.html index f94d316e3..ad5a3d874 100644 --- a/demos/position/default.html +++ b/demos/position/default.html @@ -12,68 +12,126 @@ -
-
-
- -
-
+
+

+ This is the position parent element. +

+
+ +
+

+ to position +

+
+ +
+

+ to position 2 +

+
-
+
+ position... +
+ my: + + +
+
+ at: + + +
+
+ collision: + + +
+
+
+

Use the form controls to configure the positioning, or drag the positioned element to modify its offset. +
Drag around the parent element to see collision detection in action.

+
diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js index d45b24bb1..2d3451c06 100644 --- a/ui/jquery.ui.position.js +++ b/ui/jquery.ui.position.js @@ -70,7 +70,7 @@ $.position = { return cachedScrollbarWidth; } var w1, w2, - div = $( "
" ), + div = $( "
" ), innerDiv = div.children()[0]; $( "body" ).append( div ); -- cgit v1.2.3 From 2121a1008a91c03c1e28262dcf3edc9bd8e83a20 Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 16 May 2013 10:08:47 -0400 Subject: Sortable demo (portlets): Cleanup. --- demos/sortable/portlets.html | 60 +++++++++++++++++++++++++++++++------------- 1 file changed, 42 insertions(+), 18 deletions(-) (limited to 'demos') diff --git a/demos/sortable/portlets.html b/demos/sortable/portlets.html index 5a3f2b662..a9f7c1eea 100644 --- a/demos/sortable/portlets.html +++ b/demos/sortable/portlets.html @@ -11,34 +11,58 @@ -- cgit v1.2.3