it: fix integration geometry and tab scrolling
This commit is contained in:
parent
b6502e1d8a
commit
f777b4c521
30 changed files with 123 additions and 72 deletions
|
|
@ -48,13 +48,18 @@ async fn test(run: Rc<TestRun>) -> TestResult {
|
|||
|
||||
let mono_container = w_mono2.tl.container_parent()?;
|
||||
let container_pos = mono_container.tl_data().pos.get();
|
||||
let w_mono1_title = mono_container.render_data.borrow_mut().title_rects[0]
|
||||
.move_(container_pos.x1(), container_pos.y1());
|
||||
ds.mouse.abs(
|
||||
&ds.connector,
|
||||
w_mono1_title.x1() as _,
|
||||
w_mono1_title.y1() as _,
|
||||
);
|
||||
let (tab_x, tab_y) = {
|
||||
let tab_bar = mono_container.tab_bar.borrow();
|
||||
let Some(tab_bar) = tab_bar.as_ref() else {
|
||||
bail!("no tab bar");
|
||||
};
|
||||
let w_mono1_title = &tab_bar.entries[0];
|
||||
(
|
||||
container_pos.x1() + w_mono1_title.x.get() + w_mono1_title.width.get() / 2,
|
||||
container_pos.y1() + tab_bar.height / 2,
|
||||
)
|
||||
};
|
||||
ds.mouse.abs(&ds.connector, tab_x as _, tab_y as _);
|
||||
|
||||
client.sync().await;
|
||||
tassert!(enters.next().is_err());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue