I want the block expanded by default, but when it is loaded the height is set to 0px in the css.

My text in the block is formatted as if it was a list with one item rather then just plain text.

The title also doesn't show on the flap.

CommentFileSizeAuthor
#10 Captura.JPG29.85 KBjlsevillano

Comments

agentjay’s picture

I'm not sure if it's related, but as the first issue with the height is CSS related maybe it has something to do with the CSS file missing?
/behaviors/openlayers_plus_behavior_blockpanel_toggle.css

agentjay’s picture

I have also found that the height issue only happens to the top and bottom flaps. If the flap is used on the left or right side of the map it has a height of 100% and a width of 350px

agentjay’s picture

I discovered what was causing the height issue.
in line 158 of the mbExtruder.js there is:
var container=$("<div>").addClass("text").css({width:extruder.get(0).options.width-20, height:extruder.height()-20, overflowY:"auto"});

If you delete "height:extruder.height()-20," then it works fine.

As it seems to be an issue with the Extruder I suppose it's not something you can fix in the module?

batje’s picture

We had an issue with mbExtruder earlier, forked the repo and got it committed in a few hours. If this is really a bug in mbExtruder (it might be, it might also be a combi between OpenLayers and mbExtruder), then by all means, for mbExtruder. Totally Open Source approach: https://github.com/pupunzi/jquery.mb.extruder/issues?state=open

agentjay’s picture

Forget my earlier statement, it ends up breaking the display for left and right flaps.

jlsevillano’s picture

I'm trying to run this library in drupal but i'm not sure the url in libraries.

sites/all/libraries/jquery.mb.extruder/mbExtruder.js ?

sites/all/libraries/mb.extruder/mbExtruder.js ?

Any help?

Thanks

batje’s picture

Jlsevillano that would normally be a new ticket with a fresh question. The answer is, you can download the library here
https://github.com/pupunzi/jquery.mb.extruder

jlsevillano’s picture

Sorry batje,

I'm gonna to do it...but the problem not is the library my problem is, i downloaded the library and i tried a lot of paths to get this library in my website, but always display:

For blockpanel to work, you need the mb.extrduder library installed.

batje’s picture

The folder in your libraries folder needs to be called 'jquery-mb-extruder' so:

/sites/all/libraries/jquery-mb-extruder/

That is where the files
README.md
and
jquery.mb.extruder.jquery.json

and the rest of the files should be.

jlsevillano’s picture

StatusFileSize
new29.85 KB

I did it too, before...but always display the same:
For blockpanel to work, you need the mb.extrduder library installed.

ANd clean cache and run update and the problem continous.

batje’s picture

Ah.

I think I check wether you have installed version 1.x Very old, but it prevents us from having to use jquery update.

This is the version we use: https://github.com/pupunzi/jquery.mb.extruder/archive/1.6.tar.gz

(you can also change the first line of the README.me to

# mb.extruder 1.6

and see the module die in totally different ways.

jlsevillano’s picture

OK, now recognize the library. I added in README.me :

# mb.extruder 1.6

Thanks, batje!

batje’s picture

Status: Active » Postponed (maintainer needs more info)

If you dont run into issues with the latest version of the library, can you let me know, then I can adapt the test to check for a newer version of the library.

In the meantime i committed a clearer error message.

jlsevillano’s picture

with the last library it runs perfectly, only i had needed to modify readme.md.

one more problem, if i set the block closed, it not runs because is not enough the z-index. i modified it in mbextruder.js and i put zIndex:1000

but now it runs right.

thanks.

  • batje committed 9f46bd4 on
    Added more detailed error message about mb.extruder Fixes #2145167
    
milos.kroulik’s picture

Status: Postponed (maintainer needs more info) » Fixed

I think this is solved. I will open follow-up issues for library detection and z-index.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.