Tidy up workspace resizing
This commit is contained in:
@@ -29,9 +29,9 @@ use futures::{
|
||||
Future, FutureExt, StreamExt,
|
||||
};
|
||||
use gpui::{
|
||||
actions, canvas, div, impl_actions, outline, point, size, Action, AnyModel, AnyView,
|
||||
AnyWeakView, AnyWindowHandle, AppContext, AsyncAppContext, AsyncWindowContext, Bounds, Context,
|
||||
Div, DragMoveEvent, Entity, EntityId, EventEmitter, FocusHandle, FocusableView, GlobalPixels,
|
||||
actions, canvas, div, impl_actions, point, size, Action, AnyModel, AnyView, AnyWeakView,
|
||||
AnyWindowHandle, AppContext, AsyncAppContext, AsyncWindowContext, Bounds, Context, Div,
|
||||
DragMoveEvent, Entity, EntityId, EventEmitter, FocusHandle, FocusableView, GlobalPixels,
|
||||
InteractiveElement, KeyContext, ManagedView, Model, ModelContext, ParentElement,
|
||||
PathPromptOptions, Pixels, Point, PromptLevel, Render, Size, Styled, Subscription, Task, View,
|
||||
ViewContext, VisualContext, WeakView, WindowBounds, WindowContext, WindowHandle, WindowOptions,
|
||||
@@ -3629,9 +3629,6 @@ impl Render for Workspace {
|
||||
.border_color(cx.theme().colors().border)
|
||||
.child(
|
||||
canvas(cx.listener(|workspace, bounds, cx| {
|
||||
cx.with_z_index(100, |cx| {
|
||||
cx.paint_quad(outline(*bounds, gpui::green()));
|
||||
});
|
||||
workspace.bounds = *bounds;
|
||||
}))
|
||||
.absolute()
|
||||
|
||||
Reference in New Issue
Block a user