Skip to content
Permalink
Browse files

Fixes to UIModal

  • Loading branch information...
darkfrog26 committed Jul 9, 2019
1 parent acb632d commit 8dd3b022461a71ec6e0964c8cc8da8f0a26de09d
@@ -3,7 +3,7 @@ import sbtcrossproject.CrossPlugin.autoImport.crossProject

name := "youi"
organization in ThisBuild := "io.youi"
version in ThisBuild := "0.11.13"
version in ThisBuild := "0.11.14-SNAPSHOT"
scalaVersion in ThisBuild := "2.13.0"
crossScalaVersions in ThisBuild := List("2.13.0", "2.12.8", "2.11.12")
resolvers in ThisBuild ++= Seq(
@@ -27,8 +27,8 @@ class ModalExample extends UIExampleScreen {
font := fnt
font.size := 50.px
color := Color.DarkSlateBlue
position.left := 60.0
position.top := 200.0
position.center := 400.0
position.middle := 250.0
}
})
val button = new HTMLTextView {
@@ -20,10 +20,18 @@ class UIModal[C <: Component] private(val component: C,
element.setAttribute("role", "dialog")
element.setAttribute("aria-hidden", "true")

private val document = new Container {
element.classList.add("modal-dialog")
element.classList.add("modal-lg")
element.setAttribute("role", "document")
size.width := component.size.width
size.height := component.size.height
}
children += document

private val htmlElement = HTMLComponent.element(component)
htmlElement.classList.add("modal-dialog")
htmlElement.setAttribute("role", "document")
children += component
htmlElement.classList.add("modal-content")
document.children += component

verticallyCentered.attach { b =>
if (b) {

0 comments on commit 8dd3b02

Please sign in to comment.
You can’t perform that action at this time.