durandal - jQuery ui triggers resize event but does't change the div's width -


i have following view:

<aside id="key-panel" class="ui-widget-content">    <h3 class="ui-widget-header">resizable</h3> </aside> 

i'm injecting above view main html file using durandal.js. when view attached, execute following code:

   $('#key-panel')             .resizable({                 handles: 'w',                 animate: true,                 start: function (e, ui) {                 },                 resize: function (e, ui) {                     console.log('resizing');                 },                 stop: function (e, ui) {                 }             }) 

when trying resize container can see mouse cursor being changed, resize event being fired; however, actual container doesn't change size. below html created durandal , jquery ui

<div class="durandal-wrapper" data-view="views/keypanel" data-active-view="true">     <aside id="key-panel" class="ui-widget-content ui-resizable ui-draggable"style="position: absolute; top: 80px; left: auto;">     <h3 class="ui-widget-header">resizable</h3>     <div class="ui-resizable-handle ui-resizable-w" style="z-index: 90;"></div></aside> </div> 

i've noticed aside element doesn't have width property in style attribute.

does know i'm doing wrong. tried make container draggable , worked, it's resizable functionality not doing anything.

i not sure problem, recommend put div in views. don't know why, during composition styles changed. maybe, adding div in template can solve problem.

<div>  <aside id="key-panel" class="ui-widget-content">     <h3 class="ui-widget-header">resizable</h3>  </aside> </div> 

i hope you.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -