Skip to main content

Search and Top Navigation

#10928 closed bug (notabug)

Opened January 31, 2015 05:06AM UTC

Closed January 31, 2015 12:33PM UTC

Last modified July 16, 2015 12:54PM UTC

changing innerHTML seems to destroy

Reported by: moonphrase Owned by:
Priority: minor Milestone: none
Component: ui.resizable Version: 1.11.2
Keywords: Cc:
Blocked by: Blocking:
Description

after doing...

$( "#mydiv" ).resizable({ ... })

(which works for me, as intended)

and then doing...

$('#mydiv').html('Am I still resizable?');

the resizability goes away. The #mydiv is no longer resizable.

Attachments (0)
Change History (7)

Changed January 31, 2015 05:10AM UTC by moonphrase comment:1

i messed up with the heading for this bug. I meant to complete the phrase "changing innerHTML seems to destroy "resizable" functionality

Changed January 31, 2015 12:33PM UTC by scottgonzalez comment:2

resolution: → notabug
status: newclosed

That's correct. You're removed the handles by doing that.

Changed January 31, 2015 01:11PM UTC by moonphrase comment:3

Replying to [comment:2 scott.gonzalez]:

That's correct. You're removed the handles by doing that.

?!? Why would you consider that as normal and final?

Wouldn't preserving the resizable handle, regardless of the other modifications, provide enormously more powerful development/design features, than not?

(Or perhaps this is more of a feature request?)

there are so many more design options that open up, with your "resizable" handle having more "staying power" :-)

Changed January 31, 2015 01:24PM UTC by scottgonzalez comment:4

How would you propose this work?

Changed January 31, 2015 02:19PM UTC by moonphrase comment:5

Not sure, at this point. I would be willing to help. If you guys clue me in on the code internals (the relevant functions), perhaps I might contribute some algorithmic idea, or be the user-end "gad fly" to make it happen (or something in-between :-)). I can start by exploring the code myself.

Also, i'm not sure how you guys communicate when you're developing - I hope not only through this ticket system :-)

(I was able to send emails to two people on your team, but not to you (Scott) - couldn't find your address anywhere.

Changed January 31, 2015 04:15PM UTC by scottgonzalez comment:6

_comment0: Replying to [comment:5 moonphrase]: \ > Not sure, at this point. I would be willing to help. If you guys clue me in on the code internals (the relevant functions), perhaps I might contribute some algorithmic idea, or be the user-end "gad fly" to make it happen (or something in-between :-)). I can start by exploring the code myself. \ \ Here's the important part: handles are children of the resizable element. I see no possible solution to get around that. \ \ > Also, i'm not sure how you guys communicate when you're developing - I hope not only through this ticket system :-) \ \ You should read the [contributing guidelines](https://github.com/jquery/jquery-ui/blob/master/CONTRIBUTING.md). \ \ > (I was able to send emails to two people on your team, but not to you (Scott) - couldn't find your address anywhere. \ \ My email address is plastered all over the internet. See https://github.com/scottgonzalez1422721009141625

Replying to [comment:5 moonphrase]:

Not sure, at this point. I would be willing to help. If you guys clue me in on the code internals (the relevant functions), perhaps I might contribute some algorithmic idea, or be the user-end "gad fly" to make it happen (or something in-between :-)). I can start by exploring the code myself.

Here's the important part: handles are children of the resizable element. I see no possible solution to get around that.

Also, i'm not sure how you guys communicate when you're developing - I hope not only through this ticket system :-)

You should read the contributing guidelines.

(I was able to send emails to two people on your team, but not to you (Scott) - couldn't find your address anywhere.

My email address is plastered all over the internet. See https://github.com/scottgonzalez

Changed July 16, 2015 12:54PM UTC by scottgonzalez comment:7

#13681 is a duplicate of this ticket.