Hi,
Once the user done with the operations on the map, I need a button to resize to 80% of the web page and then back to normal stage whenever he wants to do some operations on the map..
I am configuring widget in widgetOnScreen node..
Please do the needful.
Cheers,
Srikanth Dasari
Solved! Go to Solution.
Srikanth,
OK then in that case in your widget use code like this:
var tmp = {
l: null,
t: null,
w: 500,
h: 500
}
this.getPanel().resize(tmp);
I need a button to resize to 80% of the web page
Why on earth?...
Can you provide screen shots of what you are thinking?
Initially, widget will be in default size then I will do some operations..blah blah...
which is a big massive report and it requires entire page to display.. I have to resize here to show the entire report (I don't want user to resize the widget). Whenever user is going to generate the report for the other operation.. here I would like to give a button to get back to the normal size of the widget...
Hope you understood the concept now..
Cheers,
Srikanth Dasari
OK, you are really confusing things by saying you want the button to resize. I think you mean that you want the widget panel to resize, right?
Yes. Button is to reset to the normal state..
Srikanth,
OK then in that case in your widget use code like this:
var tmp = {
l: null,
t: null,
w: 500,
h: 500
}
this.getPanel().resize(tmp);
Awesome !!!
Cheers,
Srikanth Dasari
Hi Robert,
Could you please help me on maximizing the widget programmatically??
Cheers,
Srikanth Dasari