Skip to content

Commit

Permalink
Fixed an issue with aspect ratio dropdown showing a blank option in C…
Browse files Browse the repository at this point in the history
…hrome
  • Loading branch information
Steji committed Mar 22, 2016
1 parent 3294872 commit 2702c92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jquery.imagestudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var ratios = opts.cropratios;
for (var i = 0; i < ratios.length; i++)
$('<option value="' + ratios[i][0].toString() + '">' + ratios[i][1] + '</option>').appendTo(ratio);
ratio.appendTo(c).val(0).hide();
var initialRatio = ratios.length ? ratios[0][0] : 0;
ratio.appendTo(c).val(initialRatio).hide();
ratio.change(function () {
var r = getRatio();
var coords = cl.jcrop_reference.tellSelect();
Expand Down

0 comments on commit 2702c92

Please sign in to comment.