# Makie.jl resize event

**URL:** <https://discourse.julialang.org/t/makie-jl-resize-event/60418>\
**Category:** Visualization\
**Tags:** question, makie\
**Created:** [May 2, 2021, 12:57pm UTC](https://discourse.julialang.org/t/makie-jl-resize-event/60418 "2021-05-02T12:57:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [May 2, 2021, 12:57pm UTC](https://discourse.julialang.org/t/makie-jl-resize-event/60418/1 "2021-05-02T12:57:25Z")

</div>

Hello,  
one more question: Is it possible in GLMakie to capture window resize events?

I need this because the automatic layout is not doing 100% what I want.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [May 2, 2021, 2:17pm UTC](https://discourse.julialang.org/t/makie-jl-resize-event/60418/2 "2021-05-02T14:17:14Z")

</div>

You can lift the observable `figure.scene.px_area`. What is the layout not doing that it should, out of interest?

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [May 2, 2021, 7:35pm UTC](https://discourse.julialang.org/t/makie-jl-resize-event/60418/3 "2021-05-02T19:35:51Z")

</div>

> [@jules](#):
>
> `figure.scene.px_area` .

How can I lift an observable?

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [May 2, 2021, 7:42pm UTC](https://discourse.julialang.org/t/makie-jl-resize-event/60418/4 "2021-05-02T19:42:51Z")

</div>

Ok, I found a way:

```julia
    on(scene.px_area) do x
        println("New value of scene.px_area is $x")
    end

```

Don’t know what this has to do with lifting, though.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [May 2, 2021, 8:21pm UTC](https://discourse.julialang.org/t/makie-jl-resize-event/60418/5 "2021-05-02T20:21:14Z")

</div>

> [@jules](#):
>
> What is the layout not doing that it should, out of interest?

Well, two things: Firstly it does not zoom the 3D scene as much as I want it, I want 10% more zoom. And secondly I also want to increase the font size when I increase the window size. Both is working now fine, using the observable scene.px\_area 🙂
