Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2470)

Issue 9122043: Wire up resizingTextarea

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 12 months ago by bac
Modified:
10 years, 12 months ago
Reviewers:
mp+162119, matthew.scott, gary.poster
Visibility:
Public.

Description

Wire up resizingTextarea Added to charm panel and to service config view. https://code.launchpad.net/~bac/juju-gui/hookup-resizing-textarea/+merge/162119 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 8

Patch Set 2 : Wire up resizingTextarea #

Patch Set 3 : Wire up resizingTextarea #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -105 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M app/app.js View 1 1 chunk +8 lines, -2 lines 0 comments Download
M app/assets/javascripts/resizing_textarea.js View 3 chunks +7 lines, -3 lines 0 comments Download
M app/templates/service-config.partial View 1 chunk +6 lines, -6 lines 0 comments Download
M app/views/charm-panel.js View 3 chunks +11 lines, -0 lines 0 comments Download
M app/views/service.js View 2 chunks +15 lines, -0 lines 0 comments Download
M app/views/utils.js View 1 2 chunks +11 lines, -14 lines 0 comments Download
M test/test_charm_configuration.js View 3 chunks +51 lines, -31 lines 0 comments Download
M test/test_resizing_textarea.js View 2 chunks +5 lines, -5 lines 0 comments Download
M test/test_service_view.js View 1 2 chunks +20 lines, -7 lines 0 comments Download
M test/test_utils.js View 1 7 chunks +5 lines, -37 lines 0 comments Download

Messages

Total messages: 6
bac
Please take a look.
10 years, 12 months ago (2013-05-02 15:45:28 UTC) #1
jovan.ljubojevic
On 2013/05/02 15:45:28, bac wrote: > Please take a look. It works well, apart from ...
10 years, 12 months ago (2013-05-02 16:31:54 UTC) #2
matthew.scott
LGTM, QA'd fine. Thanks for the branch! https://codereview.appspot.com/9122043/diff/1/app/app.js File app/app.js (right): https://codereview.appspot.com/9122043/diff/1/app/app.js#newcode539 app/app.js:539: // If ...
10 years, 12 months ago (2013-05-02 16:32:58 UTC) #3
gary.poster
LGTM with response to below. Thank you very much! Yay! Gary https://codereview.appspot.com/9122043/diff/1/app/app.js File app/app.js (right): ...
10 years, 12 months ago (2013-05-02 17:16:16 UTC) #4
bac
Jovan I've discussed some possible solutions to this problem and the one that we've come ...
10 years, 12 months ago (2013-05-02 18:20:15 UTC) #5
bac
10 years, 12 months ago (2013-05-02 19:48:41 UTC) #6
*** Submitted:

Wire up resizingTextarea

Added to charm panel and to service config view.

R=jovan.ljubojevic, matthew.scott, gary.poster
CC=
https://codereview.appspot.com/9122043

https://codereview.appspot.com/9122043/diff/1/app/app.js
File app/app.js (right):

https://codereview.appspot.com/9122043/diff/1/app/app.js#newcode539
app/app.js:539: // If the view contains a method call fitToWindow,
On 2013/05/02 16:32:58, matthew.scott wrote:
> "// If the view contains methods called attachPlugins or fitToWindow..."
maybe?

Done.

https://codereview.appspot.com/9122043/diff/1/app/views/service.js
File app/views/service.js (right):

https://codereview.appspot.com/9122043/diff/1/app/views/service.js#newcode739
app/views/service.js:739: attachPlugins: function() {
On 2013/05/02 17:16:17, gary.poster wrote:
> Why can't we do this in render, the way you do it elsewhere?

Good question, partially answered in the comment above.  In the charm panel, the
container has already been added to the DOM when render is called.  In the
service config view it has not and so all of the size queries we do return 0 ...
things not in the DOM have no size.

So that's why it is here.

https://codereview.appspot.com/9122043/diff/1/app/views/utils.js
File app/views/utils.js (right):

https://codereview.appspot.com/9122043/diff/1/app/views/utils.js#newcode651
app/views/utils.js:651: entry.value = value.trimRight();
I've removed the trimRight. It was left over from attempting to solve a problem
that was fixed in another approach.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b