Comments (6)
I load jQuery with jspm and ended up needing to do this:
//awful hack for angular-vertilize...
angular.element.prototype.outerWidth = function() {
return jQuery(this[0]).outerWidth();
};
angular.element.prototype.height = function() {
return jQuery(this[0]).height();
};
from angular-vertilize.
Shouldn't need to require JQuery. clone.height()
is also a JQuery function!
I'm testing now to see if this could be a replacement:
myStyle = window.getComputedStyle(element[0]);
myWidth = parseInt(myStyle.getPropertyValue('width'),10);
from angular-vertilize.
Chiming in here as well with the error:
TypeError: element.outerWidth is not a function
Since we do not use jQuery, we cannot use this directive :(
from angular-vertilize.
Might be possible to use the following to get around the jQuery requirement? Haven't tried but it provides 'outerWidth' function.
http://quantumui.org/appdoc/documents/home/nojq
from angular-vertilize.
+1
We also have a project without jQuery... Any progress on this?
from angular-vertilize.
https://stackoverflow.com/a/9619396/2073920
from angular-vertilize.
Related Issues (15)
- Radio buttons not working inside vertilize HOT 3
- Calculations are wrong if used inside Bootstrap tab (and potentially other DOM changes) HOT 1
- Vertilize loaded on page-load HOT 3
- Wrong height calculation with box-sizing:border-box
- The page is very slow when input fields are present inside vertilize directive.
- permission to use source code for internal tutorial purpose
- Remove all listeners and watchers on Destroy
- Why is element.clone() used? HOT 1
- Async loaded resources support HOT 1
- Does not work if image inside the div HOT 1
- Doesn't work with bootstrap grid
- publish to npm HOT 1
- Disable if mobile HOT 2
- Static height, when extent content. HOT 2
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 angular-vertilize.