googlearchive / paper-dialog

A dialog à la Material Design
19 stars 16 forks source link

Coordinates of polymer element <paper-dialog> cannot be set #14

Closed AnjaGer closed 9 years ago

AnjaGer commented 9 years ago

When using the dart polymer element of paper-elements (https://pub.dartlang.org/packages/paper_elements), the dialog appears in the middle of the browser. The coordinates of the dialog cannot be set and it is not possible to move it.

Are there any plans to enhance the element with that features? Anja

chuckh commented 9 years ago

+1

morethanreal commented 9 years ago

If the dialog is positioned with left and/or top, it will not try to auto position. Note that using inline styles will not work since the element is implemented with inline styles. Example: http://jsbin.com/xezaze/1/edit

I'll add a section in the doc about positioning a dialog.

morethanreal commented 9 years ago

Doc added.