Commit 21120bd1 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(ui/modules/Linphone/Chat/Chat): parent may be `null` in delegate

parent ffedd50e
...@@ -18,6 +18,7 @@ class App : public QApplication { ...@@ -18,6 +18,7 @@ class App : public QApplication {
public: public:
static void init (int &argc, char **argv) { static void init (int &argc, char **argv) {
if (!m_instance) { if (!m_instance) {
// Instance must be exists before content.
m_instance = new App(argc, argv); m_instance = new App(argc, argv);
m_instance->initContentApp(); m_instance->initContentApp();
} }
......
...@@ -90,9 +90,9 @@ ColumnLayout { ...@@ -90,9 +90,9 @@ ColumnLayout {
} }
anchors { anchors {
left: parent.left left: parent ? parent.left : undefined
leftMargin: ChatStyle.entry.leftMargin leftMargin: ChatStyle.entry.leftMargin
right: parent.right right: parent ? parent.right : undefined
// Ugly. I admit it, but it exists a problem, without these // Ugly. I admit it, but it exists a problem, without these
// lines the extra content message is truncated. // lines the extra content message is truncated.
...@@ -106,7 +106,6 @@ ColumnLayout { ...@@ -106,7 +106,6 @@ ColumnLayout {
ChatStyle.entry.message.outgoing.sendIconSize ChatStyle.entry.message.outgoing.sendIconSize
} }
implicitHeight: layout.height + ChatStyle.entry.bottomMargin implicitHeight: layout.height + ChatStyle.entry.bottomMargin
width: parent.width
// ------------------------------------------------------------- // -------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment