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

Conversation

SayTen
Copy link

@SayTen SayTen commented May 5, 2017

  • Removes code to position overlay menu through javascript.
  • Adds CSS to position overlay menu in middle of window.

* Removes code to position overlay menu through javascript.
* Adds CSS to position overlay menu in middle of window.
@leekelleher
Copy link
Collaborator

@SayTen Thank you for this fix. Just tested it out, it works well for me.

@mattbrailsford Do you have any concerns with the JS position calculations being removed?

@leekelleher leekelleher self-assigned this May 10, 2017
@leekelleher leekelleher added this to the 0.5.0 milestone May 10, 2017
@mattbrailsford
Copy link
Collaborator

@leekelleher as long as it's been tested as a regular NC instance as well as inside DTGE and it works fine, I'm happy with the changes

@leekelleher
Copy link
Collaborator

@mattbrailsford 👍 I'll give it some more testing. (I've currently only tested within DTGE)

@leekelleher
Copy link
Collaborator

leekelleher commented May 10, 2017

It works fine with a regular NC.

However I have been playing around with the CSS and tweaked the rules so that the modal opens nearer in relation to the NC.

.usky-grid.nested-content__node-type-picker .cell-tools-menu {
    position: relative;
    transform: translate(-50%, -25%);
}

Note, adding the .usky-grid class selector removes the need to have !important suffix.

@SayTen - what are your thoughts on the positioning of this?

@mattbrailsford
Copy link
Collaborator

@leekelleher surely that's only true while "hide label" is false. Might need 2 rules, and then what does one do about DTGE, where the NC is far to the right.

@mattbrailsford
Copy link
Collaborator

We could of course, increase our minimum version number and use the new ad directive that doesn't have this issue :D

@leekelleher
Copy link
Collaborator

@mattbrailsford Do you know which Umbraco version introduces it? (not that I've heard of the "ad" directive)

@leekelleher
Copy link
Collaborator

@mattbrailsford re: "hide label" ... tried it, works the same.

capture

@mattbrailsford
Copy link
Collaborator

@leekelleher well, it might not be the "ad" directive, but it's the directive for this dialog :)

Not sure, would have to look back. A lot got added in 7.4.3 I think.

@mattbrailsford
Copy link
Collaborator

@leekelleher how about with the tree nav hidden?

@leekelleher
Copy link
Collaborator

leekelleher commented May 10, 2017

@mattbrailsford 😩 😃 I've tried with reducing the width, so the content-tree hides... still displays fine (for both with/without label). The modal is always positioned in the centre of the editor control.

@leekelleher leekelleher changed the title Issue-120: Positions "Content Type selection" modal by CSS, not JS (fixes issue 120) May 11, 2017
@leekelleher leekelleher merged commit b77d4b3 into umco:develop May 11, 2017
leekelleher added a commit that referenced this pull request May 11, 2017
ref: #123 (comment)

Removed the `offsetRelative` JS function, no longer used.
@SayTen SayTen deleted the issue-120 branch May 17, 2017 09:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

3 participants