Coder Social home page Coder Social logo

angular-autolayout's People

Contributors

mortonfox avatar running-web-dev07 avatar thenikso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-autolayout's Issues

Children elements don't expand their parent's bounds

In an example like the following, the div demo1 has no height unless explicitly set. This makes sense, as demo1-A through C are positioned absolutely, and therefor remove from the layout flow. However, it would be nice if constrained children would expand the bounds of their parents as well.

<div id="demo1" class="demo-container" al-update-on-resize>
    <div id="demo2">
        <div id="demo1-A" class="demo-box">A</div>
        <div id="demo1-B" class="demo-box">B</div>
        <div id="demo1-C" class="demo-box">C</div>
        <al-constraint>|-[demo1-A]-|</al-constraint>
        <al-constraint>|-[demo1-B]-|</al-constraint>
        <al-constraint>|-[demo1-C]-|</al-constraint>
        <al-constraint>V:|-[demo1-A]-[demo1-B(==demo1-A)]-[demo1-C(==demo1-A)]-|</al-constraint>
    </div>
</div>

ie9 doesn't support __defineGetter__/__defineSetter__

IE 9 & 10 aren't ecmascript 5 compliant browser, but thanks to shims can be. Specifically in this case of defineGetter/defineSetter functions which are used by the autolayout module, this can be overcome by executing:

try {
    if (!Object.prototype.__defineGetter__ && Object.defineProperty({},"x",{get: function(){return true}}).x) {
        Object.defineProperty(Object.prototype, "__defineGetter__", {
            enumerable: false,
            configurable: true,
            value: function(name,func) {
                Object.defineProperty(this,name, {get:func, enumerable: true, configurable: true});
            }
        });

        Object.defineProperty(Object.prototype, "__defineSetter__", {
            enumerable: false,
            configurable: true,
            value: function(name,func) {
                Object.defineProperty(this,name, {set:func,enumerable: true,configurable: true});
            }
        });
    }
} catch(defPropException) {/*Do nothing if an exception occurs*/};

in the global/root context.

It would be nice to have this documented in the readme.

I only say this as ie9/10 are still supported browsers in angular 1.x releases.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.