Skip to content
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

[Bug] In WEBGUI, when popping out the window, the grid becomes blank #276

Open
StephanWald opened this issue Dec 30, 2024 · 0 comments
Open
Assignees
Labels
Change: Expert Needs specialized, in-depth review Client: GUI the issues is related to GUI applications Priority: Low The issue will not be seen by most users. Usually the issue is a very specific use case or corner ca Status: Confirmed The issue is a bug and has been confirmed and an action will be taken

Comments

@StephanWald
Copy link

When running the Grid in WEBGUI, and you pop out the Window, the BBjHTMLView does not automatically trigger a re-render.

We may want to catch the JS side event for undocking and re-render the grid in its initial state, perhaps we can also do better and fill it with the most recent data and formatting.

It's already pretty clear that the pop-out cannot be lossless as the server has no permanent trace of the grid status.

There is a callback in the window listeners object in javascript options :
[image: image.png]
These callback functions are called in all connected browser windows:

  • windowDocked fires after the webswing window has been docked
  • windowUndocked fires after the webswing window has been undocked

This is how you can determine the undock state of the window:

In Javascript:
webswingInstance0.getRenderedWindows()[0].getDockState() (returns
0=docked, 1= undocked, 2= toBeUndocked)

In Java:
WebswingUtil.getWebswingApi().isUndocked(Window window)

@StephanWald StephanWald added Client: GUI the issues is related to GUI applications Priority: Low The issue will not be seen by most users. Usually the issue is a very specific use case or corner ca Status: Confirmed The issue is a bug and has been confirmed and an action will be taken Change: Expert Needs specialized, in-depth review labels Dec 30, 2024
@StephanWald StephanWald self-assigned this Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Change: Expert Needs specialized, in-depth review Client: GUI the issues is related to GUI applications Priority: Low The issue will not be seen by most users. Usually the issue is a very specific use case or corner ca Status: Confirmed The issue is a bug and has been confirmed and an action will be taken
Projects
None yet
Development

No branches or pull requests

1 participant