Style broken
Style broken
Like this image, how can I fix it?
- Attachments
-
- style_broken.jpg (113.02 KiB) Viewed 2447 times
Re: Style broken
After some digging I found stiDesignerPaintPanel covered stiDesignerToolBar and stiDesignerWorkPanel.
But if I click some button the position will be fixed.
I fixed this problem by running following code after create designer.
I still don't known where is wrong, but it work, thanks god.
But if I click some button the position will be fixed.
I fixed this problem by running following code after create designer.
Code: Select all
setTimeout(function() {
$("#StiDesignerhidePropertiesPanelButton").click().click();
$("#StiDesignerhomeToolButton").click();
$("#StiDesigner_Viewer").parent().css("top", "25px");
}, 0);
Re: Style broken
Hello.
We met such issue before. You should try to render the Designer after timeout.
Thank you.
We met such issue before. You should try to render the Designer after timeout.
Code: Select all
setTimeout(function(){
designer.renderHtml("content");
}
Re: Style broken
Thanks, your code work.
I use code like above.
Code: Select all
setTimeout(() => designer.renderHtml("designerContent"), 0);
Re: Style broken
Hello,
Thank you for sharing your code with other developers.
Have a nice day!
Thank you for sharing your code with other developers.
Have a nice day!