Skip to content

Commit 78e5325

Browse files
authored
Update to egui 0.33 (#293)
1 parent 469dd38 commit 78e5325

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ default = []
1818
serde = ["dep:serde", "egui/serde"]
1919

2020
[dependencies]
21-
egui = { version = "0.32", default-features = false }
21+
egui = { version = "0.33", default-features = false }
2222
serde = { version = "1", optional = true, features = ["derive"] }
2323

2424
duplicate = "2.0"
2525
paste = "1.0"
2626

2727
[dev-dependencies]
28-
eframe = { version = "0.32", default-features = false, features = [
28+
eframe = { version = "0.33", default-features = false, features = [
2929
"default",
3030
"default_fonts",
3131
"glow",

src/widgets/dock_area/drag_and_drop.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ enum LockState {
153153
/// Lock remains locked, but can be unlocked.
154154
SoftLock,
155155

156-
/// Lock is locked forever.
156+
/// Lock is locked forever.
157157
HardLock,
158158
}
159159

@@ -451,12 +451,12 @@ fn draw_window_rect(rect: Rect, ui: &Ui, style: &Style) {
451451
fn constrain_rect_to_area(ui: &Ui, rect: Rect, mut bounds: Rect) -> Rect {
452452
if rect.width() > bounds.width() {
453453
// Allow overlapping side bars.
454-
let screen_rect = ui.ctx().screen_rect();
454+
let screen_rect = ui.ctx().content_rect();
455455
(bounds.min.x, bounds.max.x) = (screen_rect.min.x, screen_rect.max.x);
456456
}
457457
if rect.height() > bounds.height() {
458458
// Allow overlapping top/bottom bars:
459-
let screen_rect = ui.ctx().screen_rect();
459+
let screen_rect = ui.ctx().content_rect();
460460
(bounds.min.y, bounds.max.y) = (screen_rect.min.y, screen_rect.max.y);
461461
}
462462

src/widgets/dock_area/show/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl<Tab> DockArea<'_, Tab> {
6666
pub fn show_inside(mut self, ui: &mut Ui, tab_viewer: &mut impl TabViewer<Tab = Tab>) {
6767
self.style
6868
.get_or_insert(Style::from_egui(ui.style().as_ref()));
69-
self.window_bounds.get_or_insert(ui.ctx().screen_rect());
69+
self.window_bounds.get_or_insert(ui.ctx().content_rect());
7070

7171
let mut state = State::load(ui.ctx(), self.id);
7272

0 commit comments

Comments
 (0)