Skip to content

Commit

Permalink
Merge pull request #38 from syfds/30-add-revealer-for-toggling-speake…
Browse files Browse the repository at this point in the history
…r-panel

#30: alignment fixed
  • Loading branch information
syfds authored Jul 25, 2021
2 parents f64eeb8 + a1646d7 commit 619fb82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Widget/SpeakerPanel.vala
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ public class SpeakerPanel : Gtk.Box {

public SpeakerPanel(Controller controller, Model model) {
orientation = Gtk.Orientation.VERTICAL;
valign = Gtk.Align.START;

speaker_item_panel = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 10);
speaker_item_panel.halign = Gtk.Align.CENTER;
speaker_item_panel.valign = Gtk.Align.START;

toggle_button_panel = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 10);
toggle_button_panel.halign = Gtk.Align.START;
Expand Down Expand Up @@ -167,7 +170,7 @@ public class SpeakerPanel : Gtk.Box {
}

if (speaker_model.is_view_expanded) {
pack_end(speaker_item_revealer);
pack_start(speaker_item_revealer);
} else {
remove(speaker_item_revealer);
}
Expand Down

0 comments on commit 619fb82

Please sign in to comment.