Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Conversation

mathis-m
Copy link
Contributor

@mathis-m mathis-m commented Jan 1, 2019

I searched https://developer.microsoft.com/en-us/fabric#/components for Popup, isn't there.
So i decided to not include into overview

src/components/Popup/OfficePopup.vue Outdated Show resolved Hide resolved
@mathis-m mathis-m changed the title Added "OfficePopup Added "OfficePopup" and "OfficeOverlay" Jan 2, 2019
src/components/Overlay/OfficeOverlay.types.ts Show resolved Hide resolved
src/components/Overlay/OfficeOverlay.vue Outdated Show resolved Hide resolved
Copy link
Owner

@s-bauer s-bauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added some comments to the source code, please resolve them!

src/components/Overlay/OfficeOverlay.vue Outdated Show resolved Hide resolved
src/components/Popup/OfficePopup.vue Outdated Show resolved Hide resolved
src/components/Popup/OfficePopup.vue Outdated Show resolved Hide resolved
src/components/Popup/OfficePopup.vue Outdated Show resolved Hide resolved
src/showcase/Overview.vue Outdated Show resolved Hide resolved
@s-bauer s-bauer mentioned this pull request Jan 2, 2019
55 tasks
the function does the following
1. check if overflow-y is handled. (if it is dont care)
else
2. calculate the need of a scrollbar.
if(size+1) greater than our popup size
3. if calculated need is different then prop then override
src/components/Popup/OfficePopup.vue Outdated Show resolved Hide resolved
src/components/Popup/OfficePopup.vue Outdated Show resolved Hide resolved
Copy link
Contributor Author

@mathis-m mathis-m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added short hand undefined null check 41ab27f

src/components/Popup/OfficePopup.vue Outdated Show resolved Hide resolved
src/components/Popup/OfficePopup.vue Outdated Show resolved Hide resolved
this.needsVerticalScrollBarCalc && {
overflowY: "scroll"
},
!this.needsVerticalScrollBarCalc && {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be enough to just have

this.needsVerticalScrollBarCalc && {
    overflowY: "scroll"
},

I think you don't need the negation to set overflowY to undefined

Copy link
Contributor Author

@mathis-m mathis-m Jan 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from my pov we have to, what if the oberflowY is set on the style of the component.
this would be applied to the root element and would end up having overflow something, instead of nothing.
may be tri state would not be so wrong or?
true false handling styling intern.
undefined take whatever

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, but if "overflowY" is set by the user, then it is set directly on the div, so you cannot overwrite it by using the css class

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also the styles set by the user shall always have a higher priority and overwrite the component styles

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah is the mergestyles only appling on top of provided styles

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or is it inserting it over user set styles

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mergeStyles only creates CSS classes based on the styles you put in. It returns these css class names which you bind to in the template.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it has the normal specificity of a CSS class, which will get overwritten by inline styles

@s-bauer s-bauer changed the title Added "OfficePopup" and "OfficeOverlay" Added OfficeOverlay Jan 4, 2019
@s-bauer s-bauer merged commit 0967d6a into s-bauer:master Jan 4, 2019
@s-bauer s-bauer mentioned this pull request Jan 4, 2019
mathis-m added a commit to mathis-m/office-ui-fabric-vue that referenced this pull request Jan 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.