From 8626c0f59468889782ca5f95a519aed9b229d6bd Mon Sep 17 00:00:00 2001 From: Wilson Miner Date: Thu, 2 Feb 2006 17:09:26 +0000 Subject: [PATCH] Fixed positioning of ordering widget with liquid page widths. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2234 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/media/css/global.css | 4 ++-- django/contrib/admin/media/js/admin/ordering.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/django/contrib/admin/media/css/global.css b/django/contrib/admin/media/css/global.css index fbbbe26b4b..765e752d48 100644 --- a/django/contrib/admin/media/css/global.css +++ b/django/contrib/admin/media/css/global.css @@ -281,7 +281,7 @@ ul.timelist, .timelist li { list-style-type:none; margin:0; padding:0; } .timelist a { padding:2px; } /* ORDERING WIDGET */ -ul#orderthese { padding:0; margin:0; list-style-type:none; } +ul#orderthese { position:absolute; top:8em; right:0; width:240px; padding:0; margin:0; list-style-type:none; } ul#orderthese li { list-style-type:none; display:block; padding:0; margin:6px 0; width:214px; background:#f6f6f6; white-space:nowrap; overflow:hidden; } ul#orderthese li span { display:block; border:1px solid #e7e7e7; background:transparent url(../img/admin/nav-bg-grabber.gif) top left repeat-y; font-size:10px !important; padding:4px 6px 4px 12px; } ul#orderthese span:hover { background-color:#efefef; } @@ -322,4 +322,4 @@ p img, h1 img, h2 img, h3 img, h4 img, td img { vertical-align:middle; } .vLargeTextField, .vXMLLargeTextField { width:480px; } .colM .vLargeTextField, .colM .vXMLLargeTextField { width:720px; } body.core-flatfile #id_content { height: 400px; } -.module table .vPositiveSmallIntegerField { width: 22px; } +.module table .vPositiveSmallIntegerField { width: 22px; } \ No newline at end of file diff --git a/django/contrib/admin/media/js/admin/ordering.js b/django/contrib/admin/media/js/admin/ordering.js index fb0f5b007e..53c42f3609 100644 --- a/django/contrib/admin/media/js/admin/ordering.js +++ b/django/contrib/admin/media/js/admin/ordering.js @@ -1,8 +1,8 @@ addEvent(window, 'load', reorder_init); var lis; -var top = 90; -var left = 545; +var top = 0; +var left = 0; var height = 30; function reorder_init() {