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.

Bounds checking bugs

See original GitHub issue

Overview of the problem

I’m finding several bugs related to bounds checking.

  1. When bounds="window", attempts to drag the Rnd cause it to move to top left of window. You can resize it without it moving, but when you then try to drag, it moves. See it here: https://www.webpackbin.com/bins/-L-ZFjL6mq72pTvbHIHU

  2. When lockAspectRatio is set and bounds="parent", it is possible to resize the Rnd outside of the lower bounds. First move the Rnd to the bottom of the window, then resize it from the left or right edge. The bottom will grow past the bottom edge of the window. Additional resizes from other edges/corners keep the Rnd in the same position. But clicking it to drag causes it move so the entire Rnd is within the bounds. See it here: https://www.webpackbin.com/bins/-L-ZHTV_IdyFrlUr-jip

  3. My understanding is the bound can take a selector. However bounds="body" doesn’t seem to work as expected.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
tnrichcommented, Jul 2, 2018

Seems to work for me @bokuweb

Thanks!!

1reaction
bokuwebcommented, Jun 27, 2018

@tauren @romanlex @davitv @tnrich Hi, this issue solved by v8.0.2. would you please try the latest version?

  • fix window bounds
  • add body bounds
  • fix boundary when lockAspectRatio set.

I’ll do programable bounds impletion in the future. https://github.com/bokuweb/react-rnd/issues/388

I close this issue, for now. If you find new problem, please reopen this issue or create new one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Circumventing Chrome's hardening of typer bugs
Recently, TurboFan introduced a change that adds aborting bound checks. It means that CheckBounds will never get removed during simplified ...
Read more >
How *should* a language handle bounds checking? : r/cpp
The bounds checking we're talking about automating here is for ad hoc indexing, in which exceeding the bounds isn't part of the happy...
Read more >
Bounds Checking - LRDE
Stubborn bugs​​ Padding missed out between aggregates and 32-bit objects on the stack. Bounds checking GCC usually inserts bytes of padding between adjacent ......
Read more >
818844 - Bounds-checking in StringPiece finds OOB access in ...
Fuchsia-related bugs only (no longer in Chrome) ... Issue 818844: Bounds-checking in StringPiece finds OOB access in gn_unittests.
Read more >
Bug #1830313 “wanted: elide vector bounds checking for (min x (l ...
sbcl can elide bounds checks when it knows (< index (length vector)), but not more complicated cases. When iterating over part of a...
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