Skip to content
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

feat(overlay): add connected position strategy #335

Merged
merged 1 commit into from
May 12, 2016

Conversation

jelbourn
Copy link
Member

@jelbourn jelbourn commented Apr 20, 2016

R: @hansl @robertmesserle @kara

I'm still missing tests for ViewportRuler, but I wanted to get the review started while I work on those.
(and also see if this passes on CI)

@jelbourn jelbourn added in progress This issue is currently in progress pr: needs review labels Apr 20, 2016
@googlebot googlebot added cla: yes PR author has agreed to Google's Contributor License Agreement labels Apr 20, 2016
@jelbourn jelbourn force-pushed the overlay-relative branch 4 times, most recently from c72ed60 to 8bb60ad Compare April 21, 2016 00:26


/**
* Gets the horizontal (x) "start"" dimension based on whether the overlay is in an RTL context.
Copy link
Contributor

Choose a reason for hiding this comment

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

Extra "

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

@jelbourn jelbourn force-pushed the overlay-relative branch 2 times, most recently from 926d3ad to 7704250 Compare April 21, 2016 20:15
@jelbourn
Copy link
Member Author

Added tests for ViewportRuler.

@jelbourn jelbourn removed the in progress This issue is currently in progress label Apr 21, 2016
@jelbourn jelbourn force-pushed the overlay-relative branch 13 times, most recently from 9777480 to 0a8bfc8 Compare April 22, 2016 23:58
@jelbourn
Copy link
Member Author

Tests are green now. Swapped the browser setup to use iOS8 instead of iOS7

x = originStartX + (originRect.width / 2);
} else {
x = pos.originX == 'start' ? originStartX : originEndX;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: You could split this into _getOriginConnectionX and _getOriginConnectionY methods to make it a bit more focused.

let value = transformValue.trim();

element.style.transform = value;
element.style.webkitTransform = value;
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need anything for moz here or is that covered by transform?

@kara
Copy link
Contributor

kara commented Apr 26, 2016

Done reviewing. Just a few typos and questions, but looks good to me. @hansl, @robertmesserle ?

@@ -41,7 +41,8 @@ export class Overlay {
constructor(
@Inject(OVERLAY_CONTAINER_TOKEN) private _overlayContainerElement: HTMLElement,
private _dynamicComponentLoader: DynamicComponentLoader,
private _appViewManager: AppViewManager) {
private _appViewManager: AppViewManager,
private _positionBuilder: OverlayPositionBuilder) {
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Single line for { } for consistency?

@jelbourn jelbourn force-pushed the overlay-relative branch 11 times, most recently from 0b1fbe7 to ff3f8c4 Compare May 12, 2016 23:06
@jelbourn jelbourn merged commit 7f3b1bd into angular:master May 12, 2016
@jelbourn jelbourn deleted the overlay-relative branch May 19, 2016 16:56
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants