table: Revert deferred render scrollbr for table. (#542)
This will make scrollbar always stay on top, even there have other element cover it.
This commit is contained in:
parent
464fceac96
commit
205a499bc9
1 changed files with 10 additions and 15 deletions
|
|
@ -11,8 +11,8 @@ use crate::{
|
||||||
Icon, IconName, Sizable, Size, StyleSized as _,
|
Icon, IconName, Sizable, Size, StyleSized as _,
|
||||||
};
|
};
|
||||||
use gpui::{
|
use gpui::{
|
||||||
actions, canvas, deferred, div, prelude::FluentBuilder, px, uniform_list, AppContext, Axis,
|
actions, canvas, div, prelude::FluentBuilder, px, uniform_list, AppContext, Axis, Bounds, Div,
|
||||||
Bounds, Div, DragMoveEvent, Edges, Entity, EntityId, EventEmitter, FocusHandle, FocusableView,
|
DragMoveEvent, Edges, Entity, EntityId, EventEmitter, FocusHandle, FocusableView,
|
||||||
InteractiveElement, IntoElement, KeyBinding, ListSizingBehavior, MouseButton, MouseDownEvent,
|
InteractiveElement, IntoElement, KeyBinding, ListSizingBehavior, MouseButton, MouseDownEvent,
|
||||||
ParentElement, Pixels, Point, Render, ScrollHandle, ScrollStrategy, SharedString, Stateful,
|
ParentElement, Pixels, Point, Render, ScrollHandle, ScrollStrategy, SharedString, Stateful,
|
||||||
StatefulInteractiveElement as _, Styled, UniformListScrollHandle, ViewContext,
|
StatefulInteractiveElement as _, Styled, UniformListScrollHandle, ViewContext,
|
||||||
|
|
@ -1279,9 +1279,6 @@ where
|
||||||
|_, _, _| {},
|
|_, _, _| {},
|
||||||
))
|
))
|
||||||
.child(
|
.child(
|
||||||
// use deferred to render the scrollbar for
|
|
||||||
// avoid some custom element overflow the scrollbar.
|
|
||||||
deferred(
|
|
||||||
div()
|
div()
|
||||||
.absolute()
|
.absolute()
|
||||||
.top_0()
|
.top_0()
|
||||||
|
|
@ -1291,8 +1288,6 @@ where
|
||||||
this.children(self.render_scrollbar(cx))
|
this.children(self.render_scrollbar(cx))
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.with_priority(0),
|
|
||||||
)
|
|
||||||
// Click out to cancel right clicked row
|
// Click out to cancel right clicked row
|
||||||
.when(self.right_clicked_row.is_some(), |this| {
|
.when(self.right_clicked_row.is_some(), |this| {
|
||||||
this.on_mouse_down_out(cx.listener(|this, _, cx| {
|
this.on_mouse_down_out(cx.listener(|this, _, cx| {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue