Skip to content

Commit

Permalink
Fixed issues #48, #58 (mobile safari input bug)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxxep committed Dec 18, 2014
1 parent 5c12119 commit e25e43c
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/waves.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
padding: 0;
}
.waves-input-wrapper .waves-button-input {
position: absolute;
position: relative;
top: 0;
left: 0;
z-index: 1;
Expand Down
3 changes: 1 addition & 2 deletions dist/waves.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,12 @@
wrapper.className = el.className + ' waves-input-wrapper';

var elementStyle = el.getAttribute('style');
var dimensionStyle = 'width:'+el.offsetWidth+'px;height:'+el.clientHeight+'px;';

if (!elementStyle) {
elementStyle = '';
}

wrapper.setAttribute('style', dimensionStyle+elementStyle);
wrapper.setAttribute('style', elementStyle);

el.className = 'waves-button-input';
el.removeAttribute('style');
Expand Down
2 changes: 1 addition & 1 deletion dist/waves.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/waves.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e25e43c

Please sign in to comment.