Fixed bug #13092: Massuploader button is too small (Thanks to Steffen Gebert)
authorBenni Mack <benni.mack@typo3.org>
Mon, 11 Jan 2010 13:58:11 +0000 (13:58 +0000)
committerBenni Mack <benni.mack@typo3.org>
Mon, 11 Jan 2010 13:58:11 +0000 (13:58 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6750 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/css/backend-style.css
typo3/js/flashupload.js

index ff2573e..eadcb44 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-01-11  Benjamin Mack  <benni@typo3.org>
+
+       * Fixed bug #13092: Massuploader button is too small (Thanks to Steffen Gebert)
+
 2010-01-10  Oliver Hader  <oliver@typo3.org>
 
        * Fixed bug #12977: treeLevel in TSconfig conditions should consider the creation of new pages
index 4c7e080..07df36e 100644 (file)
@@ -314,7 +314,6 @@ Description : styles for the TYPO3 backend
 .swfupload {
        display: block;
        position: absolute;
-       width: 80px;
        height: 22px;
        z-index: 2000;
 }
index 47815e0..e889cce 100644 (file)
@@ -225,6 +225,8 @@ Ext.onReady(function() {
                        if (!Ext.fly(swfConfig.button_placeholder_id)) {
                                var button = Ext.DomQuery.selectNode('#t3-file-upload-window-button-selectfiles button');
                                Ext.DomHelper.insertBefore(button, '<div id="' + swfConfig.button_placeholder_id + '"></div>');
+                               // set the width of the swf-button in background according to the user-visible button
+                               swfConfig.button_width = button.clientWidth;
                        }
                        this.swf = new SWFUpload(swfConfig);
                        this.swf.fileUploadWindow = this;