Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

Commit 1cbf35c

Browse files
committed
fix bounds drawing for nested floating renderables
1 parent 20d34da commit 1cbf35c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/debugPanel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ class DebugPanel extends Renderable {
199199
if (typeof this.ancestor !== "undefined") {
200200
renderer.save();
201201
// if this object of this renderable parent is not the root container
202-
if (!this.root && !this.ancestor.root && this.ancestor.floating) {
202+
if (!this.root && !this.ancestor.root && this.ancestor.isFloating) {
203203
var absolutePosition = this.ancestor.getAbsolutePosition();
204204
renderer.translate(
205205
-absolutePosition.x,
@@ -279,7 +279,7 @@ class DebugPanel extends Renderable {
279279
renderer.save();
280280

281281
// if this object of this renderable parent is not the root container
282-
if (!this.root && !this.ancestor.root && this.ancestor.floating) {
282+
if (!this.root && !this.ancestor.root && this.ancestor.isFloating) {
283283
var absolutePosition = this.ancestor.getAbsolutePosition();
284284
renderer.translate(
285285
-absolutePosition.x,
@@ -310,7 +310,7 @@ class DebugPanel extends Renderable {
310310

311311
if (typeof this.ancestor !== "undefined") {
312312
// if this object of this renderable parent is not the root container
313-
if (!this.root && !this.ancestor.root && this.ancestor.floating) {
313+
if (!this.root && !this.ancestor.root && this.ancestor.isFloating) {
314314
var absolutePosition = this.ancestor.getAbsolutePosition();
315315
renderer.translate(
316316
-absolutePosition.x,

0 commit comments

Comments
 (0)