Forbid stack frames from expanding the drawable area
This commit is contained in:
parent
c1907bb8ee
commit
464aefa6d7
2 changed files with 90 additions and 38 deletions
|
|
@ -35,7 +35,7 @@ impl Frame {
|
|||
}
|
||||
|
||||
pub fn size(&self) -> Size {
|
||||
self.buffer.size()
|
||||
self.buffer.current_frame().size
|
||||
}
|
||||
|
||||
pub fn reset(&mut self) {
|
||||
|
|
@ -44,11 +44,12 @@ impl Frame {
|
|||
}
|
||||
|
||||
pub fn cursor(&self) -> Option<Pos> {
|
||||
self.cursor.map(|p| self.buffer.global_to_local(p))
|
||||
self.cursor
|
||||
.map(|p| self.buffer.current_frame().global_to_local(p))
|
||||
}
|
||||
|
||||
pub fn set_cursor(&mut self, pos: Option<Pos>) {
|
||||
self.cursor = pos.map(|p| self.buffer.local_to_global(p));
|
||||
self.cursor = pos.map(|p| self.buffer.current_frame().local_to_global(p));
|
||||
}
|
||||
|
||||
pub fn show_cursor(&mut self, pos: Pos) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue