CPC H04M 1/0268 (2013.01) [G06F 1/1624 (2013.01); G06F 1/1652 (2013.01); G06F 3/0412 (2013.01); G09F 9/301 (2013.01)] | 20 Claims |
1. An electronic device comprising:
a housing comprising a first housing and a second housing coupled to the first housing to be movable with respect to the first housing within a specified range;
a rollable display visible to an outside of the electronic device through a part of the housing, the rollable display comprising a first portion selectively visible to the outside according to the movement of the second housing with respect to the first housing, the first portion being visible to the outside based on the second housing structure moving in a first direction away from the first housing, and the first portion not being visible to the outside based on the second housing moving in a second direction opposite to the first direction;
a first sensor disposed in the second housing and configured to measure a distance of the second housing to the first housing;
a second sensor disposed in the housing and configured to detect a first state in which the second housing is spaced apart from the first housing by a first distance;
a memory disposed in the housing and configured to store data regarding the first distance; and
at least one processor disposed in the housing and operatively coupled with the rollable display, the first sensor, the second sensor, and the memory,
wherein, while a screen is displayed through the display, the at least one processor is configured to:
measure the distance of the second housing to the first housing structure through the first sensor;
based on the first state being detected through the second sensor, correct the distance measured by the first sensor, based at least on a difference between the distance measured by the first sensor and the first distance; and
adjust the screen to correspond to a size of a portion visible to the outside of the electronic device in an entire region of the rollable display, based on the corrected distance.
|