Now, for something that I think is a bug in `Anko ...
# anko
k
Now, for something that I think is a bug in
Anko 0.9
. I am trying to create a squared vertical layout with this code:
Copy code
verticalLayout {
              // ...
        }.lparams {
            val screenSize = Point()
            windowManager.getDefaultDisplay().getSize(screenSize)
            height = screenSize.x
            width = screenSize.x
        }
This leads to compilation error on the line when I access the windowManager
Copy code
None of the following candidates is applicable because of receiver type mismatch:
public val Context.windowManager: WindowManager defined in org.jetbrains.anko