Image editor fix: make sure toolbar content breaks properly for long motif and object...
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 8 Jul 2014 13:49:28 +0000 (15:49 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 8 Jul 2014 13:49:28 +0000 (15:49 +0200)
apps/wiki_img/templates/wiki_img/tabs/motifs_editor.html
redakcja/static/css/gallery.css
redakcja/static/css/master.css
redakcja/static/js/wiki_img/view_editor_motifs.js
redakcja/static/js/wiki_img/view_editor_objects.js

index c064505..7258888 100644 (file)
@@ -11,7 +11,9 @@
         </div>
     </div>
 
-    <div class='scrolled'>
-        <img src="{{ document.image.url }}" class='area-selectable' alt="Tagged image" />
+    <div style="position:relative; height: 100%;">
+        <div class='scrolled'>
+            <img src="{{ document.image.url }}" class='area-selectable' alt="Tagged image" />
+        </div>
     </div>
 </div>
index fc0ed85..08e9318 100644 (file)
 .gallery-image img[src=''] {
        background-color: red;
 }
+
+#motifs-editor .toolbar {
+    height: auto;
+}
+
+#objects-editor .toolbar {
+    height: auto;
+}
index a87d5a6..0394598 100644 (file)
@@ -399,7 +399,7 @@ img.tabclose {
 
 .scrolled {
     position: absolute;
-    top: 29px;
+    top: 0;
     left: 0;
     right: 0;
     bottom: 0;
index 11cbef0..22331c5 100644 (file)
@@ -77,7 +77,7 @@
         if (x1 !== null)
             $e.data('coords', [x1, y1, x2, y2]);
         this.$objects_list.append($e);
-        this.$objects_list.append('<span class="delete">(x)</span>');
+        this.$objects_list.append('<span class="delete">(x) </span>');
     }
 
 
index 5cf014f..bd0af09 100644 (file)
@@ -68,7 +68,7 @@
         if (x1 !== null)
             $e.data('coords', [x1, y1, x2, y2]);
         this.$objects_list.append($e);
-        this.$objects_list.append('<span class="delete">(x)</span>');
+        this.$objects_list.append('<span class="delete">(x) </span>');
     }