| CPC G06F 1/1652 (2013.01) [G06F 3/04886 (2013.01); G06F 1/1624 (2013.01)] | 16 Claims |

|
1. An electronic device comprising:
a first housing;
a second housing at least partially disposed in the first housing and coupled to the first housing so as to be movable in a first direction;
a third housing at least partially disposed in the first housing and coupled to the first housing so as to be movable in a second direction;
a flexible display extendable in at least one of the first direction or the second direction as the second housing and the third housing move,
wherein the flexible display includes:
a first region disposed in the first housing and configured to form a first surface exposed outside the electronic device,
a second region configured to extend from the first region and at least partially located in the second housing or configured to form the first surface together with the first region as the second housing moves, and
a third region configured to extend from the first region and at least partially located in the third housing or configured to form the first surface together with the first region as the third housing moves,
at least one sensor,
memory storing one or more computer programs; and
one or more processors communicatively coupled to the at least one sensor,
wherein the one or more computer programs include computer-executable instructions that, when executed by the one or more processors individually or collectively, cause the electronic device to:
display a first screen on the first region,
determine a direction in which the flexible display is extended and a distance by which the flexible display is extended, based on a value obtained by the at least one sensor measuring movement of the second housing to form the second region and movement of the third housing to form the third region,
determine reallocation of a portion of a plurality of objects displayed in the first region into available display areas of the second region and the third region based on the value obtained by the at least one sensor,
redisplay unreallocated objects of the plurality of objects on the first region, and
display the reallocated objects of the plurality of objects on at least one of the second region or the third region, based on the determination of the reallocation.
|