Skip to main content

Search and Top Navigation

#7588 closed bug (duplicate)

Opened July 29, 2011 10:42PM UTC

Closed August 01, 2011 01:21PM UTC

Last modified August 01, 2011 01:21PM UTC

Div where resizable disabled becomes transparent

Reported by: mmmosias@gmail.com Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.resizable Version: 1.8
Keywords: Cc:
Blocked by: Blocking:
Description

If disabled is set to true in initialization, when it is set to false from user action, then set to true again, the div becomes transparent. Need flexibility in code to decide what the div appearance should be. Transparent div isn't always the desired behavior. It might be necessary to show same appearance as when resizable allowed.

<script type='text/javascript'>

$(document).ready(function(){

      $(function() {
         $("#slide").resizable({ disabled: true });
      });  

});

$(document).ready(function(){
      $("#trees").toggle(function(){
            //Open menu      
            $("#slide").stop().animate({ left: "+=208" }, 1200);
            $("#viewup").css("visibility","hidden");
            $("#slide").resizable({ disabled: false });
      }, function(){
            //Close menu
            $("#slide").css("width","236");
            $("#slide").stop().animate({ left: "-=208" }, 1200);
            $("#viewup").css("visibility","visible");
            $("#slide").resizable({ disabled: true });
      }); 

});

</script>

The code under //Close menu causes the div appearance to become transparent. If instead of

            $("#slide").resizable({ disabled: true });

I do

            $("#slide").resizable( "option", "disabled", true );

then resizing isn't deactivated at all.

Attachments (0)
Change History (2)

Changed August 01, 2011 01:21PM UTC by rdworth comment:1

resolution: → duplicate
status: newclosed

Changed August 01, 2011 01:21PM UTC by rdworth comment:2

Duplicate of #5973.