panemu / tiwulfx-dock

MIT License
42 stars 12 forks source link

Hint didn't hide #24

Open OleskyBogdanov opened 1 week ago

OleskyBogdanov commented 1 week ago

If the tab contains a lot of data, when you start dragging the tab and then drop it immediately, the hint doesn't disappear. Linux OpenSuse Leap 15.6

Find fix, still not perfect, but works better

if (event.isDropCompleted() || !isDragEventInsideNode(DetachableTabPane.this, event)) { Platform.runLater(() -> { ObservableList<Node> children = DetachableTabPane.this.getChildren(); children.remove(dropHint.getPath()); children.remove(dockPosIndicator); DetachableTabPane.this.requestLayout(); }); }

jingglang commented 5 days ago

Hi,

I can't replicate the problem. I tried displaying 1000 buttons in a tab, drag-drop the tab quickly to re-order/detach.

However, please try disabling tab animation with below css and let me know if it makes any difference

.tab-pane {
    -fx-open-tab-animation: NONE;
    -fx-close-tab-animation: NONE;
}