X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=examples%2Fdialog%2FuploadCropbox.js;h=9535a311233f116ef23219b17488353974b2bbb8;hp=8be50a98950f3d8bc2ece5ccb88f19555f3275cd;hb=1c33232af891dfe3f34cf26d74e8b443ff61e3d5;hpb=1c4206f6587a5b71c2a6959079e14c27e41233e5 diff --git a/examples/dialog/uploadCropbox.js b/examples/dialog/uploadCropbox.js index 8be50a9895..9535a31123 100644 --- a/examples/dialog/uploadCropbox.js +++ b/examples/dialog/uploadCropbox.js @@ -19,8 +19,13 @@ var uploadCropbox = { this.dialog = Roo.factory({ xns : Roo, xtype : 'LayoutDialog', - width : 700, + width : 800, height : 600, + north : { + xns : Roo, + xtype : 'LayoutRegion', + height : 50 + }, center : { xns : Roo, xtype : 'LayoutRegion' @@ -39,11 +44,13 @@ var uploadCropbox = { outputMaxWidth : 1200, windowSize : 300, url: 'http://localhost/web.MediaOutreach/press.local.php/Roo/Images.php', - buttons: [], + buttons: Roo.dialog.UploadCropbox.footer.CENTER, listeners : { render : function (_self) { _this.cropbox = _self; + _this.cropbox.bodyEl.dom.style.height = (parseInt(_this.cropbox.bodyEl.dom.parentNode.parentNode.parentNode.style.height) - 34) + 'px'; + _this.cropbox.bodyEl.dom.style.maxHeight = (parseInt(_this.cropbox.bodyEl.dom.parentNode.parentNode.parentNode.style.height) - 34) + 'px'; }, loadcanvas : function (_self, imageEl) { @@ -68,7 +75,21 @@ var uploadCropbox = { } } ] - } + }, + { + xtype : 'ContentPanel', + xns: Roo, + region : 'north', + listeners : { + activate : function (_self) + { + var style = 'font:bold 16px sans serif,tahoma,verdana,helvetica; color:rgba(0, 0, 0, 0.5);'; + this.setContent("
" + + "

Scroll the mouse wheel to resize the image

" + + "

Drag the image to move the image

"); + } + } + } ], buttons : [ {