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

Issue 1630041: Fix the issue to allow a custom color palette for the popup color picker.... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 11 months ago by MohamedMansour
Modified:
13 years, 10 months ago
Reviewers:
nnaze, nicholas.j.santos, dan.pupius, erik.arvidsson
Base URL:
http://closure-library.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Fix the issue to allow a custom color palette for the popup color picker. If we pass a color picker through the popup color picker's constructor, it doesn't add itself as a child to the popup nor renders itself. I have no idea if this is the right way to do this, since first time contributing to closure-library. But it works in the use case I explained in the relevant thread. http://goo.gl/lsDo BUG=none TEST=ran closure/goog/ui/popupcolorpicker_test.html Patch by Mohamed Mansour <hello@mohamedmansour.com>

Patch Set 1 #

Total comments: 8

Patch Set 2 : Removing unused line #

Total comments: 5

Patch Set 3 : Fix comments #

Total comments: 4

Patch Set 4 : Adding a more sophisticated test #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -4 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M closure/goog/ui/popupcolorpicker.js View 1 2 2 chunks +11 lines, -4 lines 0 comments Download
M closure/goog/ui/popupcolorpicker_test.html View 2 3 2 chunks +28 lines, -0 lines 1 comment Download

Messages

Total messages: 19
MohamedMansour
Hi Nathan, its Mohamed from Google I/O. Let me know if this patch is correct. ...
13 years, 11 months ago (2010-06-09 05:28:18 UTC) #1
nnaze
On 2010/06/09 05:28:18, MohamedMansour wrote: > Hi Nathan, its Mohamed from Google I/O. Let me ...
13 years, 11 months ago (2010-06-09 18:57:42 UTC) #2
dan.pupius
Thanks for picking this up. http://codereview.appspot.com/1630041/diff/1/3 File closure/goog/ui/popupcolorpicker.js (right): http://codereview.appspot.com/1630041/diff/1/3#newcode45 closure/goog/ui/popupcolorpicker.js:45: goog.ui.PopupColorPicker = function(opt_domHelper, opt_colorPicker) ...
13 years, 11 months ago (2010-06-09 19:21:54 UTC) #3
MohamedMansour
Thanks Dan, I have updated the patch, I have no idea if that is the ...
13 years, 11 months ago (2010-06-09 20:01:31 UTC) #4
dan.pupius
Thanks for making those changes. http://codereview.appspot.com/1630041/diff/11001/12003 File closure/goog/ui/popupcolorpicker.js (right): http://codereview.appspot.com/1630041/diff/11001/12003#newcode54 closure/goog/ui/popupcolorpicker.js:54: /** 2-line breaks between ...
13 years, 11 months ago (2010-06-09 20:09:26 UTC) #5
MohamedMansour
Done, and tested. Thanks! http://codereview.appspot.com/1630041/diff/11001/12003 File closure/goog/ui/popupcolorpicker.js (right): http://codereview.appspot.com/1630041/diff/11001/12003#newcode54 closure/goog/ui/popupcolorpicker.js:54: /** On 2010/06/09 20:09:26, dan.pupius ...
13 years, 11 months ago (2010-06-09 20:14:20 UTC) #6
dan.pupius
http://codereview.appspot.com/1630041/diff/15001/16002 File closure/goog/ui/popupcolorpicker_test.html (right): http://codereview.appspot.com/1630041/diff/15001/16002#newcode43 closure/goog/ui/popupcolorpicker_test.html:43: colorPicker.setColors(new Array("#ffffff", "#000000")); colorPicker.setColors(['#ffffff', '#000000']); http://codereview.appspot.com/1630041/diff/15001/16002#newcode47 closure/goog/ui/popupcolorpicker_test.html:47: assertNotNull(picker.getPopup().getElement()); This ...
13 years, 11 months ago (2010-06-09 20:48:12 UTC) #7
MohamedMansour
Thanks for the tips Dan! Is this more acceptable? http://codereview.appspot.com/1630041/diff/15001/16002 File closure/goog/ui/popupcolorpicker_test.html (right): http://codereview.appspot.com/1630041/diff/15001/16002#newcode43 closure/goog/ui/popupcolorpicker_test.html:43: ...
13 years, 11 months ago (2010-06-09 22:45:48 UTC) #8
dan.pupius
Sweet. Looks Good To Me.
13 years, 11 months ago (2010-06-09 23:06:28 UTC) #9
MohamedMansour
Cool! Nathan or Dan, feel free to commit it =)
13 years, 11 months ago (2010-06-10 01:40:09 UTC) #10
nnaze
On 2010/06/10 01:40:09, MohamedMansour wrote: > Cool! Nathan or Dan, feel free to commit it ...
13 years, 11 months ago (2010-06-10 22:26:14 UTC) #11
erik.arvidsson
http://codereview.appspot.com/1630041/diff/20001/21002 File closure/goog/ui/popupcolorpicker_test.html (right): http://codereview.appspot.com/1630041/diff/20001/21002#newcode21 closure/goog/ui/popupcolorpicker_test.html:21: <button href="javascript:void(0)" id="button1">color picker</button> button does not have an ...
13 years, 11 months ago (2010-06-11 06:27:21 UTC) #12
MohamedMansour
errr :< sorry! I wanted it to be a <a> instead of <button> If someone ...
13 years, 11 months ago (2010-06-11 11:18:43 UTC) #13
nick santos
I have to rollback this change, because it is breaking the tests on IE. Monsour, ...
13 years, 10 months ago (2010-06-14 22:51:34 UTC) #14
MohamedMansour
Yes I have IE, but which test is it breaking? When I tested this, the ...
13 years, 10 months ago (2010-06-14 22:57:35 UTC) #15
nicholas.j.santos_gmail.com
Our build farm was using ie7/vista. I haven't verified locally yet with other versions of ...
13 years, 10 months ago (2010-06-14 23:00:03 UTC) #16
nicholas.j.santos_gmail.com
for what it's worth, here was the error message: IE7_VISTA [FAILED] Test was retried 2 ...
13 years, 10 months ago (2010-06-14 23:01:10 UTC) #17
MohamedMansour
Thanks, strange, I will look into it right now.
13 years, 10 months ago (2010-06-14 23:08:01 UTC) #18
MohamedMansour
13 years, 10 months ago (2010-06-14 23:56:30 UTC) #19
While debugging, it works just fine. Without debugging, sometimes it works,
sometimes it doesn't. 

When the second color is selected is where it fails (without debug mode).

Something like this:
http://codereview.appspot.com/1676044/show
Sign in to reply to this message.

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