Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Xywh width height button #193
This PR adds an extra button to control the aspect ratio of the panels, when the user edits the width/height of the image.
Test if toggling the glyphicon-link button changes status of glyphicon-ok-sign to show/hide.
Conversation trace from closed PR: #187
Looks good and is working well.
Actually it would also be nicer to add the other styles 'color: green' etc to the css .aspect_ratio_selected class instead of in-line styles.
Also, as mentioned before, you need to use
@bramalingam If I check the 'link', change the Width then move focus away (E.g. click on X input) then the panel is re-rendered, the 'link' button is maintained as '.active' but we've lost the green check.
Also, as mentioned before (twice), you need to use m.save(newValues) instead of m.set(newValues) to enable the figure "Save" button.