-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add custom layout #832
base: dev
Are you sure you want to change the base?
Add custom layout #832
Changes from all commits
b857014
036a567
eea9235
59ba5c3
8e0c990
09c90e6
4908db8
536e12f
2ef7eba
2d1d588
56ef319
5fbce4c
03f8886
02b249e
d0215d2
883d16c
3983838
a435a70
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,12 @@ export class InteractiveMorphInspector extends QinoqMorph { | |
extent: { | ||
set (extent) { | ||
this.setProperty('extent', extent); | ||
if (!this._deserializing && this.ui && this.ui.tabContainer) this.ui.tabContainer.extent = pt(this.width, this.height - this.ui.headlinePane.height); | ||
// if (this._deserializing) return; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this save to remove? If so, can it go for good? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this is the same as the check below I would appreciate if we use this instead There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not, can/should be removed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the difference? |
||
if (this.ui && this.ui.tabContainer && this.ui.headlinePane) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. are those checks whether we are deserializing? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not necessarily, but it might have the same effect There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. then I think we should give this a try since it feels cleaner |
||
this.ui.tabContainer.position = pt(0, this.ui.headlinePane.height); | ||
this.ui.tabContainer.extent = | ||
pt(this.ui.tabContainer.width, this.height - this.ui.headlinePane.height); | ||
} | ||
} | ||
} | ||
}; | ||
|
@@ -86,13 +91,12 @@ export class InteractiveMorphInspector extends QinoqMorph { | |
this.ui.headlinePane.layout = new HorizontalLayout({ spacing: 5, align: 'center' }); | ||
this.ui.headlinePane.addMorph(this.ui.targetPicker); | ||
this.ui.headlinePane.addMorph(this.ui.headline); | ||
|
||
this.addMorph(this.ui.headlinePane); | ||
|
||
this.ui.tabContainer = await resource('part://tabs/tabs').read(); | ||
Object.assign(this.ui.tabContainer, { | ||
position: pt(1, 38), | ||
extent: pt(this.width, this.height - this.ui.headlinePane.height - CONSTANTS.TAB_HEADER_HEIGHT), | ||
position: pt(0, 38), | ||
extent: pt(this.width, this.height - this.ui.headlinePane.height), | ||
showNewTabButton: false, | ||
tabHeight: 25 | ||
}); | ||
|
@@ -107,6 +111,7 @@ export class InteractiveMorphInspector extends QinoqMorph { | |
|
||
this.initializeAnimationsInspector(); | ||
this.initializeStyleInspector(); | ||
|
||
this.ui.animationsInspectorTab.selected = true; | ||
this.addMorph(this.ui.tabContainer); | ||
this.ui.tabContainer.getSubmorphNamed('tab content container').acceptsDrops = false; | ||
|
@@ -132,7 +137,8 @@ export class InteractiveMorphInspector extends QinoqMorph { | |
|
||
selectMorphThroughHalo (morph) { | ||
if (Array.isArray(morph)) morph = morph[0]; // Multi select through halo | ||
if (this.interactive && this.interactive.sequences.includes(Sequence.getSequenceOfMorph(morph))) { | ||
if (this.interactive && | ||
this.interactive.sequences.includes(Sequence.getSequenceOfMorph(morph))) { | ||
Comment on lines
+140
to
+141
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this an intended change or was it introduced by windows formatting complications? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doesn't Sequence.getSequenceOfMorph already check whether there is a Sequence in the interactive? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @linusha This is intended |
||
this.targetMorph = morph; | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd appreciate if this stays for now please.