mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #2241 - Part 4.3: Move devtools over to getBounds().
This leaves getAdjustedQuads alone because it lives in its own world and its result gets sent over IPC. That leaves things in a bit of an intermediate state, but that should be OK for now. Backported from Mozilla bug 1186265.
This commit is contained in:
parent
840658ab39
commit
69e45fd84e
8 changed files with 32 additions and 23 deletions
|
|
@ -3071,7 +3071,10 @@ function nodeHasSize(node) {
|
|||
}
|
||||
|
||||
let quads = node.getBoxQuads();
|
||||
return quads.length && quads.some(quad => quad.bounds.width && quad.bounds.height);
|
||||
return quads.some(quad => {
|
||||
let bounds = quad.getBounds();
|
||||
return bounds.width && bounds.height;
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue