CMS MADE SIMPLE FORGE

GBFilePicker

 

[#9289] Folders and files not shown because inline css

avatar
Created By: Bertus Groenewegen (brutusmaximus)
Date Submitted: Wed May 29 07:32:54 -0400 2013

Assigned To: Georg Busch (nan)
Version: GBfilePicker 1.3.3
CMSMS Version: 1.11.5
Severity: Major
Resolution: Accepted
State: Open
Summary:
Folders and files not shown because inline css
Detailed Description:
CMS: 1.11.7

<div id="GBFP_filelist" style="opacity: 1; max-height: 0px;">

My folders and files are not shown, because a inline css declaration.


History

Comments
avatar
Date: 2013-05-29 20:41
Posted By: Penny Olorenshaw (pennyolo)

Thanks for the hint Bertus. I have the same problem with the filebrowser not
appearing. To rectify it for the time being, I've gone into
/GBFilePicker/templates/themes/Default-AJAX/fileBrowser.tpl and added an inline
style element with a min-height of 500px to <div id="GBFP_filelist">. Now the
files and folders appear. I would prefer to override the template via
module_custom but that doesn't seem to work.

Cheers,
Penny
      
avatar
Date: 2013-06-01 14:24
Posted By: Georg Busch (nan)

Sorry, could not reproduce it.
This inline css should be removed on a certain event.
But there seems to be an error in the javascript. 
There are still other issues where i'm sure there is bug in the javascript.
Will figure it out.
      
avatar
Date: 2017-03-20 10:58
Posted By: Chris (goat05)

I was having this same problem, but only in Chrome on Windows, and for me the
issue ended up being a recurring regular expression in GBFP.js.

The expression was /[^\d]*/g which was meant to eliminate non-numeric characters
so that the script could work with the numeric pixel dimensions.  However, that
also eliminates the . (dot) character, which in my case was used because of
decimal numbers.  I changed the regex to /[^\d\.]*/g throughout the script and
everything worked properly.

In my case the string 1.11111px was being converted to 111111 instead of 1.11111
which threw off the math.
      
Updates

Updated: 2013-06-01 14:24
resolution_id: => 6