<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>358039</bug_id>
          
          <creation_ts>2016-01-15 19:07:38 +0000</creation_ts>
          <short_desc>Broken initial layout of the folder applet</short_desc>
          <delta_ts>2016-01-17 17:06:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Desktop icons &amp; Folder View widget</component>
          <version>master</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hrvoje Senjan">hrvoje.senjan</reporter>
          <assigned_to name="Eike Hein">hein</assigned_to>
          <cc>kde</cc>
    
    <cc>nowrep</cc>
    
    <cc>plasma-bugs-null</cc>
          
          <cf_commitlink>http://commits.kde.org/plasma-framework/11937533e83659dc4dab6f7e8e6019863a28ddae</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1569866</commentid>
    <comment_count>0</comment_count>
    <who name="Hrvoje Senjan">hrvoje.senjan</who>
    <bug_when>2016-01-15 19:07:38 +0000</bug_when>
    <thetext>The issue was found when submitting KF 5.18 &amp; Plasma 5.5.3 to openSUSE Tumbleweed https://openqa.opensuse.org/tests/113806/modules/first_boot/steps/1

i can reproduce the problem locally also with git master of both KF5 &amp; Plasma

Reproducible: Always

Steps to Reproduce:
1. Add Folder applet to desktop

Actual Results:  
See the picture

Expected Results:  
https://openqa.opensuse.org/tests/113995/modules/first_boot/steps/1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1570020</commentid>
    <comment_count>1</comment_count>
    <who name="Eike Hein">hein</who>
    <bug_when>2016-01-16 15:59:38 +0000</bug_when>
    <thetext>Plasma 5 doesn&apos;t put a Folder View on to the desktop by default, so this is a downstream customization of the init script that&apos;s defective in some way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1570023</commentid>
    <comment_count>2</comment_count>
    <who name="Hrvoje Senjan">hrvoje.senjan</who>
    <bug_when>2016-01-16 16:06:51 +0000</bug_when>
    <thetext>The issue is here for me when i also add the folder &apos;by hand&apos;. I hope this scenario is supported ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1570024</commentid>
    <comment_count>3</comment_count>
    <who name="Hrvoje Senjan">hrvoje.senjan</who>
    <bug_when>2016-01-16 16:08:03 +0000</bug_when>
    <thetext>Please note, the regression is somewhere in KF 5.17 -&gt; 5.18 or Plasma 5.5.2 -&gt; 5.5.3 as it worked correctly before.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1570025</commentid>
    <comment_count>4</comment_count>
    <who name="Eike Hein">hein</who>
    <bug_when>2016-01-16 16:10:48 +0000</bug_when>
    <thetext>Ah sorry, I misunderstood your report initially. Seeing the problem now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1570224</commentid>
    <comment_count>5</comment_count>
    <who name="Hrvoje Senjan">hrvoje.senjan</who>
    <bug_when>2016-01-17 14:41:43 +0000</bug_when>
    <thetext>so this one &apos;broke&apos; it:

commit 344dbeb93884af36f66e9a5133e7be7bd1b1e70d
Author: David Rosca &lt;nowrep@gmail.com&gt;
Date:   Tue Dec 22 15:46:00 2015 +0100

    AppletQuickItem: Drop timer to create full representation
    
    The timer only added 250ms delay before creating the full representation,
    sometimes resulting in showing empty popup for a moment.
    
    REVIEW: 126468</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1570236</commentid>
    <comment_count>6</comment_count>
    <who name="Eike Hein">hein</who>
    <bug_when>2016-01-17 15:24:24 +0000</bug_when>
    <thetext>Yeah, I was debugging this yesterday and noticed it&apos;s because either applet.width or applet.height in main.qml::addApplet() come out as 0. Oddly the proper calculation does run before, but the applet item is squashed to 0 height before being passed to the function (onHeightChanged runs twice). Still. need to work out where and why that resize happens.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1570250</commentid>
    <comment_count>7</comment_count>
    <who name="David Rosca">nowrep</who>
    <bug_when>2016-01-17 16:00:57 +0000</bug_when>
    <thetext>Ah, so it did actually break something.

Please test https://git.reviewboard.kde.org/r/126778/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1570261</commentid>
    <comment_count>8</comment_count>
    <who name="Hrvoje Senjan">hrvoje.senjan</who>
    <bug_when>2016-01-17 16:52:36 +0000</bug_when>
    <thetext>Yep, problem solved =)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1570266</commentid>
    <comment_count>9</comment_count>
    <who name="David Rosca">nowrep</who>
    <bug_when>2016-01-17 17:06:36 +0000</bug_when>
    <thetext>Git commit 11937533e83659dc4dab6f7e8e6019863a28ddae by David Rosca.
Committed on 17/01/2016 at 17:02.
Pushed by drosca into branch &apos;master&apos;.

Ignore check if just one part of size is zero in compactRepresentationCheck

When debugging the linked bug, it looks like when item&apos;s geometry change
eg. from 0x0 to 100x100, geometryChanged may be called twice, first with 100x0
and then finally with 100x100.
This was not issue before, because we used timer to call compactRepresentationCheck.
This changes compactRepresentationCheck so that it early returns also when just
one part of item&apos;s size is zero.

Fixes regression from 344dbeb938

REVIEW: 126778

M  +2    -2    src/plasmaquick/appletquickitem.cpp

http://commits.kde.org/plasma-framework/11937533e83659dc4dab6f7e8e6019863a28ddae</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>