AnsweredAssumed Answered

off panel widget icon

Question asked by milesee0000 on Apr 24, 2018
Latest reply on Apr 24, 2018 by rscheitlin


I'm trying to create an off panel widget that when clicked will zoom to a predefined level. I'd like to use an existing widget icon. My problem is that I'm using the following html in the Widget.html file and the border around the icon is being displayed slightly larger than a standard in-panel widget icon, ie 42x45 pixels, rather than 40x40 pixels, and I have no idea why. Any help would be much appreciated.


<div title="Zoom To" data-dojo-attach-event="onclick:_onButtonClicked" class="jimu-widget-onscreen-icon">

    <img src="widgets/About/images/icon.png" />



Thanks in advance,