[#9289] Folders and files not shown because inline css
History
Comments
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
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.
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.