Closed kaysaith1900 closed 4 years ago
Hi @kaysaith1900, thank you for the comment. Try this: https://jsfiddle.net/c63nwm2k/
Hi @anseki : try this example, https://jsfiddle.net/bftm6jh2/3/
thanks a lot for helping me solve this problem. : )
Do you mean that you can't move the element horizontally after that was resized? If so, that is correct behavior. See document: https://anseki.github.io/plain-draggable/#options-containment
@anseki , thanks a lot for replying, i got it . i will update the parent(contaiment) size once the child element size is bigger than parent. : )
:smile:
Hi @anseki , new problem for helping, this is your example below, the element size will change back again when I resize the window. you can try that in your example. thanks a lot .
Hi @kaysaith1900, thank you for the comment. Try this: https://jsfiddle.net/c63nwm2k/
Try this: https://jsfiddle.net/xbwu257d/
thanks @anseki , it works. but I hope I can handle style by javascript style, not depends css to do this. hope you can provide a method to do this. : ) love this library.
Do you mean that you don't want to use classes?
yes, I wanna dynamic update the element style by user enter input value. it is not convenient using class to do this.
Try this: https://jsfiddle.net/n2rhLy0u/
cool, smart way to solve it. Although I have one more div, I still love it. thanks @anseki . 👍
:smile:
Hey anseki:
this is an example, have a look. thanks a lot. https://jsfiddle.net/cs61wh0u/1/