Skip to content

Commit c30732f

Browse files
Karanvir KangKaranvir Kang
authored andcommitted
Setting width and height of input element type 1px
Since the file input element is now using visibility instead of display, due to a bug in Opera 12, it would be better to set the width and height to a minimal value, otherwise it causes the scrollbar to show if the flow button is added on the right edge of the screen.
1 parent 778aaa4 commit c30732f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/flow.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,9 @@
371371
// display:none - not working in opera 12
372372
extend(input.style, {
373373
visibility: 'hidden',
374-
position: 'absolute'
374+
position: 'absolute',
375+
width: '1px',
376+
height: '1px'
375377
});
376378
// for opera 12 browser, input must be assigned to a document
377379
domNode.appendChild(input);

0 commit comments

Comments
 (0)