WebSite X5Help Center

 
Dieter D.
Dieter D.
User

Sticky Bar - Using and then not using makes problems...  en

Author: Dieter D.
Visited 1147, Followers 1, Shared 0  

Hi!

If you have a Sticky Bar in your project but later decide not to use it and disable (uncheck the "Display upper bar" box) it in all of your responsive views, there still stays the objects within the generated HTML code.
Ctrl-View to regenerate everything doesn't help.

Usually no problem but if you had a wide object (I played around with a 1938px wide text object) then forget about it as you don't use the sticky bar anyhow, you will always have a x-axis scrollbar on every website smaller than the object you had put there.

Problem was it is still in the generated HTML and CSS in all viewports even it is not used as disabled!!
(I manually deleted the div out of the HTML and the huge x-scrollbar to 1938px wide in all viewports was gone.)

Incomedia, please forward to the developers. If StickBar is not used/enabled in the viewport the code should not be generated.

In the HTML there still was:

In the CSS (just one viewpoint example):
@media (max-width: 719px) and (min-width: 480px) {
    #imStickyBar_imMenuObject_01_wrapper { position: absolute; top: 0px; left: 1px; width: 1938px; height: 37px; z-index: 1002;  }
    #imStickyBar_imCell_1 { width: 1938px; min-height: 30px;  padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; }
    #imStickyBar_imCellStyle_1 { width: 1938px; min-height: 30px; padding: 0px 0px 0px 0px; border-top: 0; border-bottom: 0; border-left: 0; border-right: 0; }
    #imStickyBar_imCellStyleGraphics_1 { left: 0px; right: 0px; }

Workaround: delete all objects from the sticky bar if you decide not to use it!

Posted on the
1 ANSWERS
Incomedia
Stefano G.
Incomedia

Hi Dieter,

I thank you for reporting this issue. I verified myself on a new project and its definitely there.

I'll forward this to the developers so that it can get checked, and will get back to you as soon as they get back to me.

Thank you

Stefano

Read more
Posted on the from Stefano G.