summaryrefslogtreecommitdiff
path: root/modules/organize
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-01-03 22:31:20 -0800
committerBharat Mediratta <bharat@menalto.com>2011-01-03 22:31:20 -0800
commit3928058ba5897eb2c6a2f3fb76664012db014a89 (patch)
tree2195754022bdfc529b628750371ef6cc3786421a /modules/organize
parent0cd1ccfdc27b082b1f792f8d65f47f35fa5ce678 (diff)
Fix a few small visual issues:
- Let the thumb data view scroll on drag/drop - Switch the album panel to be a FitLayout and use a title and bbar instead of nested panels. - Set the tree_panel width to be 200px to start.
Diffstat (limited to 'modules/organize')
-rw-r--r--modules/organize/views/organize_dialog.html.php27
1 files changed, 9 insertions, 18 deletions
diff --git a/modules/organize/views/organize_dialog.html.php b/modules/organize/views/organize_dialog.html.php
index 9f89ba4d..0135707a 100644
--- a/modules/organize/views/organize_dialog.html.php
+++ b/modules/organize/views/organize_dialog.html.php
@@ -85,6 +85,7 @@
listeners: {
"render": function(v) {
v.dragZone = new Ext.dd.DragZone(v.getEl(), {
+ containerScroll: true,
getDragData: function(e) {
var target = e.getTarget(v.itemSelector, 10);
if (target) {
@@ -248,23 +249,11 @@
});
var album_panel = new Ext.Panel({
- layout: "border",
+ layout: "fit",
region: "center",
- items: [
- {
- xtype: "label",
- region: "north",
- text: <?= t("Drag and drop photos to re-order or move between albums")->for_js() ?>,
- margins: "5 5 5 10",
- },
- {
- xtype: "panel",
- layout: "fit",
- region: "center",
- items: [thumb_data_view]
- },
- button_panel
- ]
+ title: <?= t("Drag and drop photos to re-order or move between albums")->for_js() ?>,
+ items: [thumb_data_view],
+ bbar: button_panel
});
/*
@@ -339,8 +328,10 @@
loader: tree_loader,
region: "west",
- width: 150,
split: true,
+ minSize: 200,
+ maxSize: 350,
+ width: 200,
root: {
nodeType: "async",
@@ -362,7 +353,7 @@
});
tree_panel.getRootNode().expand();
- new Ext.Viewport({
+ var outer = new Ext.Viewport({
layout: "border",
cls: "g-organize",
items: [tree_panel, album_panel]