Skip to content

Commit 894f07e

Browse files
committed
run formatter
1 parent a872a6d commit 894f07e

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

lib/scenic/component/input/dropdown.ex

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,18 @@ defmodule Scenic.Component.Input.Dropdown do
9090
direction = styles[:direction] || @default_direction
9191

9292
# calculate the where to put the drop box. Depends on the direction
93-
translate_menu = case direction do
94-
:down -> {0, height + 1}
95-
:up -> {0, height * -item_count - 1}
96-
end
93+
translate_menu =
94+
case direction do
95+
:down -> {0, height + 1}
96+
:up -> {0, height * -item_count - 1}
97+
end
9798

9899
# get the direction to rotate the caret
99-
rotate_caret = case direction do
100-
:down -> @rotate_down
101-
:up -> -@rotate_up
102-
end
100+
rotate_caret =
101+
case direction do
102+
:down -> @rotate_down
103+
:up -> -@rotate_up
104+
end
103105

104106
graph =
105107
Graph.build(font: font, font_size: font_size)
@@ -189,7 +191,7 @@ defmodule Scenic.Component.Input.Dropdown do
189191
def handle_input(
190192
{:cursor_button, {:left, :press, _, _}},
191193
%{id: @button_id} = context,
192-
%{down: false, graph: graph, rotate_caret: rotate_caret } = state
194+
%{down: false, graph: graph, rotate_caret: rotate_caret} = state
193195
) do
194196
# capture input
195197
ViewPort.capture_input(context, [:cursor_button, :cursor_pos])

0 commit comments

Comments
 (0)