Style broken

Stimulsoft Reports.JS discussion
Post Reply
303248153
Posts: 15
Joined: Mon Nov 14, 2016 4:13 am

Style broken

Post by 303248153 »

Like this image, how can I fix it?
Attachments
style_broken.jpg
style_broken.jpg (113.02 KiB) Viewed 2448 times
303248153
Posts: 15
Joined: Mon Nov 14, 2016 4:13 am

Re: Style broken

Post by 303248153 »

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.

Code: Select all

setTimeout(function() {
	$("#StiDesignerhidePropertiesPanelButton").click().click();
	$("#StiDesignerhomeToolButton").click();
	$("#StiDesigner_Viewer").parent().css("top", "25px");
}, 0);
I still don't known where is wrong, but it work, thanks god.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Style broken

Post by HighAley »

Hello.

We met such issue before. You should try to render the Designer after timeout.

Code: Select all

setTimeout(function(){
    designer.renderHtml("content");
}
Thank you.
303248153
Posts: 15
Joined: Mon Nov 14, 2016 4:13 am

Re: Style broken

Post by 303248153 »

Thanks, your code work.

Code: Select all

setTimeout(() => designer.renderHtml("designerContent"), 0);
I use code like above.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Re: Style broken

Post by Andrew »

Hello,

Thank you for sharing your code with other developers.

Have a nice day!
Post Reply