diff --git a/demo/index.html b/demo/index.html index 06c533c..c00493a 100644 --- a/demo/index.html +++ b/demo/index.html @@ -12,7 +12,7 @@ iron-image demo - + @@ -89,6 +89,24 @@

+

+ sizing="contain|cover" with context-menu allows + the image to still be right clicked as well as dragged. +

+ + + +

Use the --iron-image-width property to set the width of the image wrapped by the iron-image. diff --git a/iron-image.html b/iron-image.html index bf774d6..1fb5a06 100644 --- a/iron-image.html +++ b/iron-image.html @@ -43,6 +43,11 @@ + Will allow sized image be be right clicked and dragged: + + + Will show light-gray background until the image loads: - +
@@ -260,6 +275,16 @@ type: Number, value: null }, + + /** + * Can the be right clicked or dragged when sizing is set. + */ + + contextMenu: { + type: Boolean, + value: false, + reflectToAttribute: true + }, }, observers: [ @@ -344,7 +369,7 @@ }, _computeImgHidden: function() { - return !!this.sizing; + return !!this.sizing && !this.contextMenu; }, _widthChanged: function() {