Comments (7)
Hi all,
the problem is .outerHeight()
Since the 1.8.0 update, the outerWidth and outerHeight methods return the children objects and not the width or height of the collection's first element.
Changing to: .outerHeight(true)
This fixes the issue and returns the height including the margin of the slide element.
Cheers,
Juliano
from jquery-minicolors.
Thanks @julianox - worked great.
from jquery-minicolors.
Is this still an issue with jQuery 1.8.2? I'm not seeing any positioning issues as-is.
from jquery-minicolors.
yes, it is still an issue (as of 1.8.3) - the outerHeight() as of 1.8+ is usable as a setter as well and when used without the bolean parameter 0 is assumed as the input value and an object is returned (as is jquery convention for setter invocations).
for detailed descriptiuon of the mentioned jq function please refer to the link below. simply put "true" to the relevant invocations and all will be ok :-)
http://blog.jquery.com/2012/08/16/jquery-1-8-box-sizing-width-csswidth-and-outerwidth/
from jquery-minicolors.
Ok, but do you have a minimal test case to demonstrate what's happening. It appears to work fine as-is...I can't replicate the problem.
On Nov 27, 2012, at 10:13 AM, petrkalina [email protected] wrote:
yes, it is still an issue (as of 1.8.3) - the outerHeight() as of 1.8+ is usable as a setter as well and when used without the bolean parameter 0 is assumed as the input value and an object is returned (as is jquery convention for setter invocations).
for detailed descriptiuon of the mentioned jq function please refer to the link below. simply put "true" to the relevant invocations and all will be ok :-)
http://blog.jquery.com/2012/08/16/jquery-1-8-box-sizing-width-csswidth-and-outerwidth/
—
Reply to this email directly or view it on GitHub.
from jquery-minicolors.
hello, sorry, I'm buried with work at the moment. it seems to me there has to be some kind of interference with the likes of jqueryui or else, because the problem doesn't occur in your demo page (just validated), while it occurs within my test page, being quite a bit more complex. I'm sorry not to be able to be more specific, however obviously the issue is limited t some specific scenarios. on the other hand adding the boolean parameter does no harm and solves the problem for everyone, so I wonder that might be the optimal course of action..
from jquery-minicolors.
The plugin has been completely rewritten, and positioning has been overhauled. Please give the new version a try (not backwards compatible) and feel free to submit a new issue if you notice a problem.
from jquery-minicolors.
Related Issues (20)
- Position failed HOT 1
- The position of the picker does not work correctly when the scale value of the body tag is changed. HOT 1
- Request: beforeShow event
- How to import minicolors with webpack? HOT 3
- Performance bugs HOT 3
- displaying HEX code in the color picker panel itself HOT 2
- getting a checked image when selecting a preset swatch HOT 4
- Problem with opacity + wheel HOT 1
- Option to show text input with `inline` option? HOT 1
- Scrolling on mobile HOT 5
- jQuery 4 deprecation warnings
- Any chance of updating this to HDR colours? HOT 1
- Updating settings with shorter array of swatches causes exception
- Initial selection is black HOT 1
- Update github website URL HOT 1
- Use 'Transparent' on swatches HOT 3
- Worst documentation I've even seen ! HOT 1
- bootstrap 5 theme & input-group
- Dynamically add mincolors to a field HOT 1
- Duplicated values in the swatch result in multiple same colors in the swatch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-minicolors.