From ce70669b8f09a9154723df80992ab6afe02c1d5c Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 5 Jan 2011 21:17:11 -0800 Subject: Visual tweaks for IE8 compatibility. Set the min width and min height to what IE8 wants the thumbnail's box to be when the inner image maxes out at 120 pixels (specified in Organize_Controller::album_info()). Avoid using inline-block. --- modules/organize/css/organize.css | 9 +++------ modules/organize/views/organize_dialog.html.php | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/modules/organize/css/organize.css b/modules/organize/css/organize.css index 81f41f21..6b034fc2 100644 --- a/modules/organize/css/organize.css +++ b/modules/organize/css/organize.css @@ -5,8 +5,8 @@ .g-organize div.thumb { padding: 8px; margin: 8px; - width: 128px; - height: 128px; + width: 144px; + height: 149px; vertical-align: middle; float: left; } @@ -17,6 +17,7 @@ .g-organize div.thumb img { border: 4px solid white; + margin: 0px; } .g-organize div.thumb:hover { @@ -55,10 +56,6 @@ margin-right: 4px; } -div.multi-proxy div { - display: inline-block; -} - .g-organize .x-tree-node-el { font-size: 12px; line-height: 20px; diff --git a/modules/organize/views/organize_dialog.html.php b/modules/organize/views/organize_dialog.html.php index 8ba9b3cc..eaba6cdd 100644 --- a/modules/organize/views/organize_dialog.html.php +++ b/modules/organize/views/organize_dialog.html.php @@ -109,7 +109,7 @@ var div = document.createElement("div"); div.className = "multi-proxy"; for (var i = 0; i != selected_nodes.length; i++) { - div.appendChild(selected_nodes[i].cloneNode(true)); + div.appendChild(Ext.get(selected_nodes[i]).dom.firstChild.cloneNode(true)); if ((i + 1) % 3 == 0) { div.appendChild(document.createElement("br")); } @@ -290,7 +290,7 @@ enableDD: true, dropConfig: { appendOnly: true, - ddGroup: "organizeDD", + ddGroup: "organizeDD" }, listeners: { "click": function(node) { -- cgit v1.2.3