Select to view content in your preferred language

LaunchPad Theme HTML Layout Issues

2437
2
Jump to solution
01-14-2016 03:51 AM
AnthonyGiles
Honored Contributor

Hi All,

I am having issues with trying to layout HTML elements in a widget when using the LaunchPad Theme. I have a very simple widget layout at the moment with just a label, a measurement dijit, and a piece of text below. Here is the widget.html

<div>
    <div><label>${nls.descriptionlabel}</label></div>
    <div data-dojo-attach-point="_measureNode"></div>
    <div>Press <b>CTRL</b> to enable snapping.</div>      
</div>

This displays as expected in every theme except the launchpad theme where I cannot get anything to appear below the measurement dijit:

Foldable Theme:

Billboard Theme:

Box Theme:

Dart Theme:

LaunchPad Theme:

I suspect it is something to do with the LaunchpadPanel but I cannot for the life of me work out whats going on. What do I need to do to display HTML elements below the measurement dijit

Any help would be appreciated

Regards

Anthony

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Anthony,

   The issue is that the launchpad theme has some css overrides that position the measurement dijit using absolute values of 0 for top, bottom, left and right:

.claro .esriMeasurement {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}

So you will have to override those with !important in your css for positioning your div.

Or you can just comment out the above code block from the launchpad.css in the

[install dir]\client\stemapp\themes\LaunchpadTheme\styles\default\css

folder or your apps

[install dir]\server\apps\[app #]\themes\LaunchpadTheme\styles\default\css folder

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Anthony,

   The issue is that the launchpad theme has some css overrides that position the measurement dijit using absolute values of 0 for top, bottom, left and right:

.claro .esriMeasurement {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}

So you will have to override those with !important in your css for positioning your div.

Or you can just comment out the above code block from the launchpad.css in the

[install dir]\client\stemapp\themes\LaunchpadTheme\styles\default\css

folder or your apps

[install dir]\server\apps\[app #]\themes\LaunchpadTheme\styles\default\css folder

AnthonyGiles
Honored Contributor

Cheers Robert,

Timely and correct as usual.

I added the following into the widgets style.css and it has sorted it out:

.LaunchpadTheme .esriMeasurement { 

  position: inherit !important;   

}

Regards

Anthony

0 Kudos