mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
IRCClient: Tweak size of window input boxes.
Now that GTextEditor is a GFrame, we need to make some room here for the frame around the editor. :^)
This commit is contained in:
parent
4454392929
commit
34118aaaca
Notes:
sideshowbarker
2024-07-19 14:54:26 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/34118aaacae
@ -41,7 +41,7 @@ IRCWindow::IRCWindow(IRCClient& client, void* owner, Type type, const String& na
|
||||
|
||||
m_text_editor = new GTextEditor(GTextEditor::SingleLine, this);
|
||||
m_text_editor->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
|
||||
m_text_editor->set_preferred_size({ 0, 15 });
|
||||
m_text_editor->set_preferred_size({ 0, 19 });
|
||||
m_text_editor->on_return_pressed = [this] (GTextEditor& editor) {
|
||||
if (m_type == Channel)
|
||||
m_client.handle_user_input_in_channel(m_name, editor.text());
|
||||
|
Loading…
Reference in New Issue
Block a user