-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to refresh page after I have updated the UI component? #172
Comments
Take a look at JS console may be there are some exceptions has been fired. They can cause such sort of problems. To refresh an UI component content you should call "repaint()" method. But in both cases (design component and comp tree) refreshing has to be done automatically by zebkit (no manual execution of repaint is required) |
Thanks, maybe this caused by Error. I will see. And I want to ask another question. How to refresh the main zCanvas size ? |
zCanvas provides "setSizeFull(boolean)" method that forces canvas changing its size to occupy the full available window area. |
Well, may my description is not clear. And I am trying to setSzieFull(true) zCanvas, but it is useless. |
Sorry, I found is will auto resize. Thank you. Finally, Can I ask another question about refresh UI? Can I set panel or another container with setSizeFull(true) to auto resize the parent component? |
Everything what is inserted into panel is laid out with layout managers. Just use appropriate layout manager to stretch kid component(s) to occupy all available space of a parent component. You can use, for example, stack layout: var p = new zebkit.ui.Panel();
p.setStackLayout(); // shortcut to setup stack layout manager
p.add(new zebkit.ui.Button("Test")); // button will occupy the whole panel space |
Thank you. But the StackLayout can't do what I want else. But when I use BorderLayout or StackLayout, the Panel's width and height is 0.
|
I have get this problem when I use design UI component.
The design UI left some pixel in the background.I guess it maybe the background or all the ui need to refresh once. But the I can't find the refresh function.
Then the second problem when I use CompTree component. I build the model by the var:
And set the tree model by
tree.setModel(SceneObjects);
When I first show the tree, it like this:
It show tree well.
Then I change the SceneObjects var to add some treeItem.
Finally, I set it again by
tree.setModel(SceneObjects);
But the result is that:
And when I try to click one of them, it will refresh partly.
Well, I want to know how to show it completely when I setMode .
The text was updated successfully, but these errors were encountered: