demos/resizable: limited background-position fix to resizable element that needs it (with ui-widget-header class)

This commit is contained in:
Richard Worth 2008-12-30 05:49:01 +00:00
parent f401cdc0a8
commit b5eb51943e
3 changed files with 4 additions and 3 deletions

View File

@ -8,7 +8,8 @@
<script type="text/javascript" src="../../ui/ui.core.js"></script>
<script type="text/javascript" src="../../ui/ui.resizable.js"></script>
<style type="text/css">
#resizable, #also { width: 150px; height: 150px; padding: 0.5em; background-position: top left; }
#resizable { background-position: top left; }
#resizable, #also { width: 150px; height: 150px; padding: 0.5em; }
#also { margin-top: 1em; }
</style>
<script type="text/javascript">

View File

@ -8,7 +8,7 @@
<script type="text/javascript" src="../../ui/ui.core.js"></script>
<script type="text/javascript" src="../../ui/ui.resizable.js"></script>
<style type="text/css">
#resizable { width: 150px; height: 150px; padding: 0.5em; background-position: top left; }
#resizable { width: 150px; height: 150px; padding: 0.5em; }
.ui-resizable-helper { border: 1px dotted gray; }
</style>
<script type="text/javascript">

View File

@ -8,7 +8,7 @@
<script type="text/javascript" src="../../ui/ui.core.js"></script>
<script type="text/javascript" src="../../ui/ui.resizable.js"></script>
<style type="text/css">
#resizable { width: 160px; height: 90px; padding: 0.5em; background-position: top left; }
#resizable { width: 160px; height: 90px; padding: 0.5em; }
</style>
<script type="text/javascript">
$(function() {