question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Binding Croppie when element isn't visible causes boundaries to be incorrect

See original GitHub issue

I found a bug in croppie.js from line 340 to 358. four if is so terrible, i can not understand it. absolutely i know in my code the transBoundaries.minX > transBoundaries.maxX, four if will be run.

if i comment those if, everything is OK.

To Show this question. You can find my code here: https://github.com/tosone/tosone.github.io.git and https://tosone.github.io/, click 头像, you will find it.

Thank You! I want to know why.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tosonecommented, Nov 30, 2015

After i remove the fade, it works well. i think i need this function

window.setInterval(function () {
    if($('modal').is(':animate')) {
    }
},100)

Thank you.

0reactions
syntacticsolutionscommented, Oct 23, 2017

I fixed this with the following code

Croppie.prototype.refresh = function(){ let zoom = (this.get()).zoom; this.setZoom(zoom - .01); }

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Am I Not Catching Crappie? – 6 Reasons - YouTube
Want To Locate Crappie Fast? Get My 7 Step Crappie Locating System Here – https://www.dominatefishing.com/6-step- crappie -locating-system/you ...
Read more >
Croppie - a simple javascript image cropper - Foliotek
Visibility and Binding​​ Croppie is dependent on it's container being visible when the bind method is called. This can be an issue when...
Read more >
Untitled
Repacking parachutes may cause some degradation in the strength of the parachute material. The FAA has, therefore, determined that this final rule is...
Read more >
Recreational Fisheries: Ecological, Economic and Social Evaluation
correct figure is closer to 14% (McDonald 2000, personal communication). Clearly the reasons individuals value recreational fishing vary greatly, ...
Read more >
COXGR.ESSION AL RECORD-SEN ATE - Congress.gov
Omaha, who had seen his business gradually slipping away to the cooperatives during the past 10 years. A livestock exchange official,.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found