All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dominokit.domino.ui.notifications.TopLeftPosition Maven / Gradle / Ivy

There is a newer version: 1.0.139
Show newest version
package org.dominokit.domino.ui.notifications;

import elemental2.dom.HTMLElement;

public class TopLeftPosition extends NotificationPosition{


    protected TopLeftPosition() {
        super("top-left", "top");
    }

    @Override
    public void onBeforePosition(HTMLElement element) {
        element.style.setProperty("top", "20px");
        element.style.setProperty("left", "20px");
    }

    @Override
    protected int getOffsetPosition(HTMLElement element) {
        return element.offsetTop;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy