<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>139629</bug_id>
          
          <creation_ts>2014-12-14 15:55:13 -0800</creation_ts>
          <short_desc>Unnecessary scroll bars when child is resized manually.</short_desc>
          <delta_ts>2022-04-09 07:15:16 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Etheryte">karl.tarvas</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>karl.tarvas</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1055512</commentid>
    <comment_count>0</comment_count>
    <who name="Etheryte">karl.tarvas</who>
    <bug_when>2014-12-14 15:55:13 -0800</bug_when>
    <thetext>Given a parent element &lt;div&gt; with set width, height and overflow: auto, containing a child element &lt;div&gt; with larger set dimensions, when the child element is manually resized (through class addition, Javascript etc.) to be equal the parent&apos;s dimensions, the scroll bars are not hidden (as they should be).

Sample on Jsfiddle: http://jsfiddle.net/rktvybb0/
Related discussion on Stack Overflow: http://stackoverflow.com/questions/27474930/avoid-triggering-overflow-auto-after-resizing-a-child-element-to-matching-size/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1055568</commentid>
    <comment_count>1</comment_count>
    <who name="Etheryte">karl.tarvas</who>
    <bug_when>2014-12-14 22:41:25 -0800</bug_when>
    <thetext>Forcing a redraw with a workaround as seen on the following Stack Overflow thread removes the scrollbars: http://stackoverflow.com/a/3485654/1470607

Javascript:

    this.style.display=&apos;none&apos;;
    this.offsetHeight; //Won&apos;t work without this
    this.style.display=&apos;&apos;;

While this works as a workaround, it would still be nice to see this fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1057328</commentid>
    <comment_count>2</comment_count>
    <who name="Etheryte">karl.tarvas</who>
    <bug_when>2014-12-21 14:45:31 -0800</bug_when>
    <thetext>The problem only occurs when the new dimensions for the child element are given in pixels, when percentage values are used, the issue isn&apos;t present.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1398334</commentid>
    <comment_count>3</comment_count>
    <who name="Etheryte">karl.tarvas</who>
    <bug_when>2018-02-12 02:12:35 -0800</bug_when>
    <thetext>As of version 63.0.3239.132, this issue is still present.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1860016</commentid>
    <comment_count>4</comment_count>
    <who name="Etheryte">karl.tarvas</who>
    <bug_when>2022-04-09 07:15:16 -0700</bug_when>
    <thetext>The issue is no longer reproducible in version 100.0.4896.75. I haven&apos;t kept track in what version it got fixed in specifically.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>