embersherpa / ember-element-resize-detector Goto Github PK
View Code? Open in Web Editor NEWSuper-optimized cross-browser resize listener for elements.
Home Page: https://embersherpa.github.io/ember-element-resize-detector
License: MIT License
Super-optimized cross-browser resize listener for elements.
Home Page: https://embersherpa.github.io/ember-element-resize-detector
License: MIT License
The current ember-cli-fastboot
releases (1.0.0-rc.1 and above) introduce breaking changes. These will most likely break your current FastBoot implementation.
See ember-fastboot/ember-cli-fastboot#387 for more information and a guide on how to fix your addon. Also you may want to visit the -fastboot
Slack channel to get help from other users.
Note: this issue has been created automatically, by searching for certain patterns in your code. If you think this has been falsely created, feel free to close!
I'm getting the following error when attempting to upgrade to Ember 3.2 which appears to come from
https://github.com/EmberSherpa/ember-element-resize-detector/blob/master/addon/components/resize-detector.js#L31
Uncaught Error: Assertion Failed: Attempted to call .sendAction() with the action 'on-resize' on the destroyed object '<ilios@component:resize-detector::ember199658>'.
Looks like the component resize-detector uses no tag
export default Ember.Component.extend({
layout,
tagName: '',
resizeDetector: service(),
...
which causes this error in ember 2.8
ember.debug.js:6778 Uncaught Error: Assertion Failed: You cannot use attributeBindings
on a tag-less component: <schema-ember@component:resize-detector::ember1957>
This issue comes up when using ember-scrollable ( which uses this add on )
DEPRECATION: ember-cli-babel 5.x has been deprecated. Please upgrade to at least ember-cli-babel 6.6. Version 5.2.8 located: site-xxx-> ember-light-table -> ember-scrollable -> ember-element-resize-detector -> ember-cli-babel
Element resize detector adds the following block to the page which forces apps implementing CSP to relax their rules for styles making their app vulnerable. Is this something that can be avoided? May be add this as a vendor stylesheet?
<style id="erd_scroll_detection_scrollbar_style">
/* Created by the element-resize-detector library. */
.erd_scroll_detection_container > div::-webkit-scrollbar { display: none; }
.erd_scroll_detection_container_animation_active { -webkit-animation-duration: 0.1s; animation-duration: 0.1s; -webkit-animation-name: erd_scroll_detection_container_animation; animation-name: erd_scroll_detection_container_animation; }
@-webkit-keyframes erd_scroll_detection_container_animation { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
@keyframes erd_scroll_detection_container_animation { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
</style>
app.import is not a function
TypeError: app.import is not a function
at Class.module.exports.included (/Users/nmcclay/git/light-table/node_modules/ember-light-table/node_modules/ember-element-resize-detector/index.js:20:17)
at /Users/nmcclay/git/light-table/node_modules/ember-cli/lib/models/addon.js:244:32
I encountered this issue trying to upgrade ember-light-table and noticed this problem.
if (!process.env.EMBER_CLI_FASTBOOT) {
app.import('vendor/element-resize-detector/element-resize-detector.js');
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.