Skip to content

feat(overlay): add connected position strategy - #335

Merged
jelbourn merged 1 commit into
angular:masterfrom
jelbourn:overlay-relative
May 12, 2016
Merged

jelbourn merged 1 commit into
angular:masterfrom
jelbourn:overlay-relative

Conversation

@jelbourn

@jelbourn jelbourn commented Apr 20, 2016 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Extra "

Copy link
Copy Markdown
Contributor 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
Copy Markdown
Contributor 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
Copy Markdown
Contributor 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
Copy Markdown
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
Copy Markdown
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

kara commented Apr 26, 2016

Copy link
Copy Markdown
Contributor

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

private _appViewManager: AppViewManager) {
private _appViewManager: AppViewManager,
private _positionBuilder: OverlayPositionBuilder) {
}

Copy link
Copy Markdown
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 force-pushed the overlay-relative branch from ff3f8c4 to dd69a53 Compare May 12, 2016 23:33
@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
Copy Markdown

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