From 0ec53f52347e996a7060ad3eb35dc8f7d88e71c5 Mon Sep 17 00:00:00 2001 From: rWatcher Date: Fri, 2 Apr 2010 07:52:20 +0800 Subject: [PATCH] Fixed weird RTL bug. --- modules/tagfaces/js/jquery.Jcrop.js | 2 +- modules/tagfaces/views/drawfaces.html.php | 76 +++++++++++++---------- 2 files changed, 45 insertions(+), 33 deletions(-) diff --git a/modules/tagfaces/js/jquery.Jcrop.js b/modules/tagfaces/js/jquery.Jcrop.js index ad261f97..d938e203 100644 --- a/modules/tagfaces/js/jquery.Jcrop.js +++ b/modules/tagfaces/js/jquery.Jcrop.js @@ -105,7 +105,7 @@ $.Jcrop = function(obj,opt) // Initialize some jQuery objects {{{ var $origimg = $(obj); - var $img = $origimg.clone().removeAttr('id').css({ position: 'absolute' }); + var $img = $origimg.clone().removeAttr('id').css({ position: 'static' }); $img.width($origimg.width()); $img.height($origimg.height()); diff --git a/modules/tagfaces/views/drawfaces.html.php b/modules/tagfaces/views/drawfaces.html.php index 981854c8..2dc9800f 100644 --- a/modules/tagfaces/views/drawfaces.html.php +++ b/modules/tagfaces/views/drawfaces.html.php @@ -6,20 +6,20 @@ .jcrop-vline, .jcrop-hline { - font-size: 0; - position: absolute; - background: white url('') top left repeat; + font-size: 0; + position: absolute; + background: white url('') top left repeat; } .jcrop-vline { height: 100%; width: 1px !important; } .jcrop-hline { width: 100%; height: 1px !important; } .jcrop-handle { - font-size: 1px; - width: 7px !important; - height: 7px !important; - border: 1px #eee solid; - background-color: #333; - *width: 9px; - *height: 9px; + font-size: 1px; + width: 7px !important; + height: 7px !important; + border: 1px #eee solid; + background-color: #333; + *width: 9px; + *height: 9px; } .jcrop-tracker { width: 100%; height: 100%; } @@ -27,14 +27,14 @@ .custom .jcrop-vline, .custom .jcrop-hline { - background: yellow; + background: yellow; } .custom .jcrop-handle { - border-color: black; - background-color: #C7BB00; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; + border-color: black; + background-color: #C7BB00; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; } @@ -60,30 +60,42 @@ }; -
-
- dynamic_top() ?> -
-

-
-

-
-
-
-

title) ?>

-
-
- resize_img(array("id" => "g-photo-id-{$item->id}", "class" => "g-resize")) ?> -
+ + + + +
+ dynamic_top() ?> +
+

+

+ resize_img(array("id" => "g-select-photo-id-{$item->id}", "class" => "g-select-resize", "style" => "position: fixed;")) ?>
-
+