Re: [maqetta-devs] How to disable resizing of widget.

34 views
Skip to first unread message

Bill Reed

unread,
Sep 13, 2013, 10:30:32 AM9/13/13
to maqett...@googlegroups.com
Hi,
I do not have the code on my current machine to give this a try but you should be able to disable the  "drag" resizing from the canvas  for the widget by the setting the "resizable" property to "none" in the widget.json file . search the file for "resizable" and you will see how the property is used by other widgets in the toolkit

The user will still be able to change the size from the properties palette, I believe the only way to prevent that would be to add code to the widgets helper to ensure the height/width values are always set to your desired value. TabContainer shares a helper with other container widgets  So you would need to create a custom helper that inherits from ./dijit/layout/LayoutContainerHelper https://github.com/maqetta/maqetta/blob/master/maqetta.core.client/WebContent/davinci/skeletons/Helper.js Describes all of the helper 
methods that can be implemented in your helper perhaps postCreateWidget would work for you.

Good luck,
Bill



On Fri, Sep 13, 2013 at 1:48 AM, dyapa srikanth <dyapa.srik...@gmail.com> wrote:
Hi all,

I have a requirement where I want to disable the resize functionality of particular widgets(Tabbar, Tabview). It should be at the top & width should be 100% and height-auto. So that I disabled the Layout, Padding, Margin tabs for that widget. But still user able to change its position & height or width by dragging the blue line coming around widget upon selecting it with mouse.

Is there any way to stop resizing the particular widget, Or where can I look up to do changes to stop the drag, drop & resize listeners for the widget.

Thanks & Regards
Srikanth D.

--
You received this message because you are subscribed to the Google Groups "Maqetta Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maqetta-devs...@googlegroups.com.
To post to this group, send email to maqett...@googlegroups.com.
Visit this group at http://groups.google.com/group/maqetta-devs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages