Skip to main content

Search and Top Navigation

#7190 closed bug (duplicate)

Opened March 23, 2011 08:26AM UTC

Closed June 07, 2011 09:27AM UTC

Last modified June 07, 2011 09:27AM UTC

Resizable-call hides the resizable control if 'display' is set to 'none'

Reported by: joerg.metzler Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.resizable Version: 1.8.11
Keywords: Cc:
Blocked by: Blocking:
Description

Hi you JQuery-UI-Guys,

i got a bug with ui.resizable:

If a control (in my case a select (multiple)) is hidden (e.g. in a tab) then the call "$('#mycontrol').resizable(...)" creates a wrapper around '#mycontrol' with the size of zero.

Here is an example:

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8">

<title>jQuery UI Resizable</title>

<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">

<script src="../../jquery-1.5.1.js"></script>

<script src="../../ui/jquery.ui.core.js"></script>

<script src="../../ui/jquery.ui.widget.js"></script>

<script src="../../ui/jquery.ui.mouse.js"></script>

<script src="../../ui/jquery.ui.resizable.js"></script>

<link rel="stylesheet" href="../demos.css">

<style>

.ui-resizable-se

{

bottom: 17px;

}

</style>

<script>

$(function () {

$("select").resizable({

handles: "se"

});

});

function makeTheSelectDivVisible(){

$('#theselectdiv').css('display', 'block');

}

</script>

</head>

<body>

<input type="button" id="thebutton" onclick="javascript:makeTheSelectDivVisible();" value="click me to make the select visible" />

<div class="demo" style="display: none" id="theselectdiv">

<table>

<tr>

<th>

select

</th>

</tr>

<tr>

<td>

<select multiple="multiple" size="4" style="width: 250px">

<option>test1</option>

<option>test2</option>

</select>

</td>

</tr>

</table>

</div>

</body>

</html>

Attachments (0)
Change History (2)

Changed June 07, 2011 09:27AM UTC by rdworth comment:1

resolution: → duplicate
status: newclosed

Changed June 07, 2011 09:27AM UTC by rdworth comment:2

Duplicate of #6230.