• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Info widget Background

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Info widget Background

    Is there any way to make the info widget background transparent rather than white? I'm trying to add text to a page, but don't want it to appear as a big box.

  • #2
    Sure, you can set it on startup via an execute script by pulling in the widget and setting the body background to transparent. Below is an example; I named my info widget 'myInfoWidget'.

    Code:
    getWidget('myInfoWidget').body.setStyle('background','transparent');

    Comment


    • #3
      that didn't work for me. I added this to the widget and it worked:
      <style>.x-panel-body-ultraslim{background:transparent;}</style>

      Comment


      • #4
        Looks like using my approach causes problems in other widgets. Do you have any more thoughts on how we can get this to work?

        Comment


        • #5
          You are changing the x-panel-body-ultraslim class for the entire application. Not sure why the technique that Johnny gave you is not working. Did you replace the "myInfoWidget" with the name of your widget?

          Comment


          • #6
            I used the name I see on screen and also tried clicking the widget when setting up the script. Nothing works. In fact, I set up an app to test with just an info widget. It hangs with the script, but displays successfully without it.

            Comment


            • #7
              So the script must be in error...what is the code in your script?

              Comment


              • #8
                Here's what I have:

                image.png?

                Comment


                • #9
                  Is the "info" widget the only widget in your application? Is it set to be "Initially Hidden"?

                  Comment


                  • #10
                    It's not the only widget. It's not initially hidden.

                    Comment

                    Working...
                    X