diff --git a/lively.ide/studio/controls/component.cp.js b/lively.ide/studio/controls/component.cp.js index f1c76d8aeb..d62d187fa4 100644 --- a/lively.ide/studio/controls/component.cp.js +++ b/lively.ide/studio/controls/component.cp.js @@ -263,7 +263,7 @@ export class ComponentControlModel extends PropertySectionModel { const { autoComponentSelection, hoverComponentSelection, clickComponentSelection } = this.ui; const pos = this.targetMorph.position; // the parent is always preserved, since we can not alter the structural inheritance here - if (this.targetMorph.master) { + if (this.targetMorph.master && !this.targetMorph.master.statePartitionedInline) { const previousMasterConfig = this.targetMorph.master.getConfig() || {}; const bps = previousMasterConfig.breakpoints; if (bps) bps[0][1] = autoComponentSelection.component; diff --git a/lively.ide/studio/controls/responsive.cp.js b/lively.ide/studio/controls/responsive.cp.js index 27106fd0f3..c346698977 100644 --- a/lively.ide/studio/controls/responsive.cp.js +++ b/lively.ide/studio/controls/responsive.cp.js @@ -44,7 +44,7 @@ class BreakpointEntryModel extends ViewModel { } getBreakpointSpec () { - const store = this.targetStylePolicy?.getBreakpointStore(); + const store = !this.targetStylePolicy?.statePartitionedInline && this.targetStylePolicy?.getBreakpointStore(); if (!store) { return; } @@ -53,7 +53,7 @@ class BreakpointEntryModel extends ViewModel { update (targetMorph) { this.targetMorph = targetMorph; - const store = this.targetStylePolicy?.getBreakpointStore(); + const store = !this.targetStylePolicy?.statePartitionedInline && this.targetStylePolicy?.getBreakpointStore(); if (!store) return; const { horizontalPin, verticalPin, configureComponentButton } = this.ui; const { @@ -289,7 +289,7 @@ export class ResponsiveControlModel extends PropertySectionModel { let bpStore; while (true) { - bpStore = stylePolicy?.getBreakpointStore(); + bpStore = !stylePolicy?.statePartitionedInline && stylePolicy?.getBreakpointStore(); if (bpStore) { break; }