| Page 1 of 1 | [ 9 posts ] |
MarcYUI Contributor
|
Hi,
I have a problem with skin override on a widget that didn't occur in 3.4.1. This maybe because yui 3.4.1 was more forgiving of something I did wrong. The problem is: 1. Skin override doesn't seem to work reliably anymore. On my widget most of the time the default sam css is loaded and applied. 2. If the skin does get loaded, you briefly see the sam skin applied and then the correct skin is applied. My code is like so: Code: YUI_config.skin = { overrides:{ 'gallery-slidecheckbox':['ios5-green'] } } <div class="yui3-skin-ios5-green"> <input type="checkbox" name="myCheck1" class="yesno" id="c1" class="slidecheck"> </div> The css is part of a gallery widget (I am the author): slide checkbox. I assume that this is because of changes to the Loader module which may be exposing some issue in my code, I didn't realize was there. If there's a way to handle this issue I would love to hear about it. Kind regards, Marc |
|
We're also experiencing this problem, resulting in a significant performance degradation due to extraneous skins being loaded. Is this a known bug or an API change?
|
|
@Mark --
Can you post a repro link (to jsfiddle or something) so I can see it happen? |
|
|
MarcYUI Contributor
|
With 3.6.0pr2, I have a new/similar problem. Now, the skin is not loaded on one component but it is on another.
I use Code: YUI_config.skin = { overrides:{ 'gallery-fb-statusfield':['green'] } }; YUI_config.groups.mygallery={ base:'./js/yui-library/', combine:true, comboBase:YUI_config.serverUrl + '/yui/' + YUI_config.version + '/?', root:'yui-library/', modules:{ 'gallery-fb-statusfield':{requires:["widget-base","io-base","event-key","substitute","node-style"],skinnable:true} Until 3.6.0pr2, this worked. With 3.6.0pr2, it loads the default 'sam' skin. Reading the documentation about skinning, I miss information about skinning components. Only the suggestion that I should statically load a skin or change the skin for the entire page through the loader. This info seems incomplete BTW, because it's missing some relevant info on loading custom skins through components and doesn't mention skin overrides in YUI_Config. Did something change? I also tried wrapping the component with <div class="green"> The component is executed as a plugin for a textarea field. Any suggestions? It looks like a bug given that all things equal, it works before 3.6.0pr2 and not after. Cheers, Marc |
|
Marc --
Please file a working repro case so I can investigate it. |
MarcYUI Contributor
|
Ok, I created a repro case and figured out the problem.
Unlike in 3.4.1, if you select a skin override in 3.6.0, it will load both the sam skin and the custom skin. The order in which this happens doesn't seem to be guaranteed at first, which is why I was confused at first because the isolated test seemed to work. http://yuilibrary.com/projects/yui3/ticket/2532423 |
MarcYUI Contributor
|
I see that this issue has not been targeted for 3.6.0 yet. I would strongly recommend that it is. I'm sure a lot of people would not want to use 3.6.0 if it doesn't process custom skins properly.
|
|
I was on vacation last week, and this week has been me catching up so there has been no movement on it because I have yet to triage any of the tickets that were opened while I was away
|
| Page 1 of 1 | [ 9 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group