Messi icon indicating copy to clipboard operation
Messi copied to clipboard

Sometimes the "center" property doesn't work

Open joaocarloscabral opened this issue 11 years ago • 4 comments

By default, i'm using property "center: true". sometimes it doesn't work and it happens:

bug

Has a work around solution for this? Thanks

joaocarloscabral avatar Apr 01 '14 02:04 joaocarloscabral

Simple: modal = new Messi(...); setTimeout(function() {modal.resize();}, 50);

joaocarloscabral avatar Apr 01 '14 02:04 joaocarloscabral

But how do you make the contents inside the messi window scroll?

perthsystem avatar Apr 01 '14 03:04 perthsystem

Hey! It's very simple... Just put this line after new Messi...

$('.messi-content').css("overflow", "auto");

joaocarloscabral avatar Apr 01 '14 03:04 joaocarloscabral

Can you verify that this behavior is happening in the latest version of Chrome (currently 34.0). Also can you verify that it's failing with my version?

https://github.com/MessiJS/MessiJS/ (https://github.com/MessiJS/MessiJS/issues/27)

If you can provide the contents of your div.messi-content and the options you used for new Messi(...), I can try to fix it in my repo. I've attempted to duplicate this, with no success.

You shouldn't need to specify {center: true}, that's the default.

kgust avatar Apr 10 '14 18:04 kgust