intel / rib

Rapid Interface Builder (RIB) is a browser-based design tool for quickly prototyping and creating the user interface for web applications. Layout your UI by dropping widgets onto a canvas. Run the UI in an interactive "Preview mode". Export the generated HTML and Javascript. It's that simple!
https://01.org/rib
Apache License 2.0
148 stars 74 forks source link

[Another] Fix bug quickly delete and bug that can not paste cutted page #220

Closed DonnaWuDongxia closed 12 years ago

DonnaWuDongxia commented 12 years ago

with #217, I found a bug of layout view. You can select a "radio button" in layout view, and then change tab to other views, such as go to preview, and then change back to layout view, you will find that the selected radio button lost the green box. "toggle switch" still has this problem. It means, layout iframe can't show "selected green box" for all widgets after its refresh action.

DonnaWuDongxia commented 12 years ago

Originally, the node was removed first and then set one of its siblings as selected, the "nodeRemove" event is fired first, "select event" later. But in #217, I made the select event go first, so some widget will lose the green box in layout view.

zhizhangchen commented 12 years ago

Why do you do this in fireModelEvent instead of in removeChildFromZone?